Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
5 years, 8 months ago
I am constantly writing up my homework in Latex and they always have the same framework. Is there anyway I can create a script in Linux that creates a file with the framework then opens it in TexStudio?
For example let's say I am in /home/school/ directory and want to create a file named HW3.tex in the same directory with the framework then open it in TexStudio. Is there anyway of doing this?
Oct 3, 2017 at 0:23
113 3 3 bronze badges
Create a template file containing the framework,
and then write a shell script called
newtex that says
cp /path/name/to/your/template "$1"
and, if you want, add
(or whatever command you use to edit a file).
Oct 3, 2017 at 0:52
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only
newtex filename.texit will create a filename.tex file in my current directory with a framework that is already predefined in another .tex file.