Hi, how would I go about including conditional statements in Latex?
if
\ifdef DRAFT \else
%%% do some PSTricks stuff in here
\fi
and then I'm able to set DRAFT=1 in some other file, ie a style file.
Thanks!!!
Search found 8 matches
- Thu Nov 05, 2009 12:11 pm
- Forum: General
- Topic: Conditional Statements in Latex
- Replies: 2
- Views: 7173
- Thu Nov 05, 2009 12:08 pm
- Forum: General
- Topic: LaTex Compilation & Multi-threading / Multi-core CPUs
- Replies: 3
- Views: 13749
Re: LaTex Compilation & Multi-threading / Multi-core CPUs
Update: I butchered my style file and removed any extra class basically and nullified a lot of my custom commands.
30 page compilation before: 13 seconds on dual core 1.83ghz, 3gb ram.
after: 1 second.
I can just toggle between my draft and xetex .sty files as necessary.
30 page compilation before: 13 seconds on dual core 1.83ghz, 3gb ram.
after: 1 second.
I can just toggle between my draft and xetex .sty files as necessary.
- Tue Nov 03, 2009 2:00 pm
- Forum: General
- Topic: What variable current section name?
- Replies: 7
- Views: 36486
Re: What variable current section name?
I've spent countless hours trying to figure this out-- native Latex support is very lacking in this regard.
Here is what I did. Make a variable that stores the current section title.
ie
\definecommand{sectiontitle}{#1}
\definecommand{setsectiontitle}[1]{\renewcommand{sectiontitle}{#1}}
and use ...
Here is what I did. Make a variable that stores the current section title.
ie
\definecommand{sectiontitle}{#1}
\definecommand{setsectiontitle}[1]{\renewcommand{sectiontitle}{#1}}
and use ...
- Tue Nov 03, 2009 1:55 pm
- Forum: General
- Topic: LaTex Compilation & Multi-threading / Multi-core CPUs
- Replies: 3
- Views: 13749
LaTex Compilation & Multi-threading / Multi-core CPUs
Hello,
I'm currently writing a math book in latex (Miktex 2.8, XeTeX, Windows 7 64-bit) and I was wondering if there is any tex distribution for windows that supports multithreading? It appears as if miktex runs 1 thread when compiling.
I ask this because my book is several hundred pages, however ...
I'm currently writing a math book in latex (Miktex 2.8, XeTeX, Windows 7 64-bit) and I was wondering if there is any tex distribution for windows that supports multithreading? It appears as if miktex runs 1 thread when compiling.
I ask this because my book is several hundred pages, however ...
- Thu Jul 23, 2009 8:34 am
- Forum: Fonts & Character Sets
- Topic: Different Math/Text fonts
- Replies: 5
- Views: 10527
Re: Different Math/Text fonts
http://www.alexpoole.info/academic/literaturereview_fr.html
Interesting. And even more so considering he uses a sans-serif font, ;)
I find sans-serif easier on the eyes personally. It's also easier to scan in on information quickly with a sans-serif font as you can make out the word shape easier ...
Interesting. And even more so considering he uses a sans-serif font, ;)
I find sans-serif easier on the eyes personally. It's also easier to scan in on information quickly with a sans-serif font as you can make out the word shape easier ...
- Wed Jul 22, 2009 10:21 am
- Forum: Fonts & Character Sets
- Topic: Different Math/Text fonts
- Replies: 5
- Views: 10527
Re: Different Math/Text fonts
Hi Thorsten,
Thanks for your reply, and I have looked over the guide. I am still wondering how to use one font for general text, and another for specifically Math equations only? The commands for the Math fonts in that guide lock normal and math fonts to the one specified.
And that's interesting ...
Thanks for your reply, and I have looked over the guide. I am still wondering how to use one font for general text, and another for specifically Math equations only? The commands for the Math fonts in that guide lock normal and math fonts to the one specified.
And that's interesting ...
- Tue Jul 21, 2009 12:25 pm
- Forum: Fonts & Character Sets
- Topic: Different Math/Text fonts
- Replies: 5
- Views: 10527
Different Math/Text fonts
Hi Guys,
I have a question. I'm relatively new to Matrix-- I'm quite familiar with it, but some things still elude me. I've been trying to figure out how to do the following, and I was wondering if somebody could assist me:
1) How do I have a separate font for Math (I'd like to use the default ...
I have a question. I'm relatively new to Matrix-- I'm quite familiar with it, but some things still elude me. I've been trying to figure out how to do the following, and I was wondering if somebody could assist me:
1) How do I have a separate font for Math (I'd like to use the default ...
- Tue Jul 21, 2009 12:21 pm
- Forum: Page Layout
- Topic: Setting up Lines in the Margins (sample PDF design provided)
- Replies: 1
- Views: 1621
Setting up Lines in the Margins (sample PDF design provided)
Hello,
I'm new to the forum, and am currently writing a book for a standardized exam. I was wondering if somebody could assist me, I found a neat document (PDF) and there are several features that I want to reproduce but I'm not sure how to do so. I'm virtually positive the PDF was made with Latex ...
I'm new to the forum, and am currently writing a book for a standardized exam. I was wondering if somebody could assist me, I found a neat document (PDF) and there are several features that I want to reproduce but I'm not sure how to do so. I'm virtually positive the PDF was made with Latex ...