349 reputation
17
bio website
location Hungary
age 36
visits member for 1 year, 10 months
seen 10 hours ago

Jul
9
awarded  Popular Question
Jul
2
awarded  Curious
May
17
comment Create my own templates with include files, how to create directory structure?
Also tried on Linux. Under Linux this works: export TEXINPUTS=.//:~/Dropbox/Documents/Templates: but under Windows, the trailing colon cannot be used, and the only way I could find is to use c:\texlive\2013\texmf-dist\tex\\
May
17
comment Create my own templates with include files, how to create directory structure?
Here is the solution. For Windows, you can set TEXINPUTS to TEXINPUTS=.\\;c:\Temp\SyncedFolder\Templates\\;c:\texlive\2013\texmf-dist\tex\\ There "templates" is my templates dir and "texmf-dist\tex" is my LiveTex distribution dir. Here are some questions: Where is the value ot TEXINPUTS documented? I have spent the last two hours figuring out the syntax and the meaning, but I could find abolutely nothing on it. Why is that? It took me 30 minutes to come up with a TEXINPUTS value that actually works!
May
16
comment Create my own templates with include files, how to create directory structure?
I'm sorry I'm acting like a child. Under windows, how do I set it to contain the current dir, and "c:\temp\any_folder"? Using TEXINPUTS=".//:c:\temp\any_folder" obviously does not work because : is used for separation. :-s
May
16
comment Create my own templates with include files, how to create directory structure?
See the image at the end of the question.
May
16
revised Create my own templates with include files, how to create directory structure?
added 115 characters in body
May
16
comment Create my own templates with include files, how to create directory structure?
After setting TEXINPUTS to "TEXINPUTS=.//" I get "I can't find the file 'text01.tex'" error. Besides, some persons suggested here that "you should not set TEXINPUTS. You'll get problems when using ConTeXt or LuaTeX beside pdflatex" see tex.stackexchange.com/questions/93712/… but maybe he was wrong
May
16
comment Create my own templates with include files, how to create directory structure?
I just added an MWE as a zip file link. Under "adding content from a document class" I meant something like setting the watermark image or change the font with a physical TTF file etc. Please see the example - how can I use my businessletter class from any folder? Right now the businessletter cannot load the watermark file because it does not know where it is.
May
16
revised Create my own templates with include files, how to create directory structure?
Added a MWE
May
15
comment Create my own templates with include files, how to create directory structure?
I have accepted the answer that I got. But using a document class does not seem to be a good solution, because these files should be synchronized with dropbox or google drive across many computers. Document class needs to go into TXMFHOME which will never by sync-ed.
May
15
comment Create my own templates with include files, how to create directory structure?
Thanks. Well this does not work nicely with dropbox or google drive. My goal was to use LaTex for creating letters, reports and contracts for my company. The style should be defined for the company. I wanted to use the same templates from my computers, and synchronize them with Google Drive. Unfortunately, it seems I cannot use Google Drive folder for making a document class. :-( And it also seems there is no way to give script-relative paths. I'm doomed.
May
15
accepted Create my own templates with include files, how to create directory structure?
May
7
comment Create my own templates with include files, how to create directory structure?
I would use a document class. But is it possible to add actual content from a document class? I thought it should only be used for creating styles, not content.
May
7
comment Create my own templates with include files, how to create directory structure?
Okay, so in letter_header.tex I have this: \fancyhead[RE,LO]{\includegraphics[width=1cm]{sm_stamp.png}} If I use \input instead of \include then I get this: LaTeX Warning: File `sm_stamp.png' not found on input line 48. ! Unable to load picture or PDF file 'sm_stamp.png'. The png file and the letter_header.tex file are in the same directory. So I guess \include changes to the directory of letter_header.tex and \input doesn't. As a result, relative image paths cannot be used from letter_header.tex.
May
7
comment Create my own templates with include files, how to create directory structure?
\input does not work because I have images included in letter_header. They are also located in the templates directory. Unfortunately, \input does not change the current dir so it would be impossible to use relative paths to access the images from letter_header.
May
7
asked Create my own templates with include files, how to create directory structure?
Dec
9
accepted How to autoscale a horizontal barchart (pgfplots)
Sep
27
awarded  Yearling
Aug
31
accepted Bad label placing in kiviat diagram