8
votes
4answers
476 views

XeLaTeX - terminal output too verbose

Is it possible to reduce the amount of information you get from running: xelatex texfile.tex The oh so long output: This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/Debian) restricted ...
4
votes
1answer
137 views

Fine-tuning page output upon second compilation

This question is quite general. Nonetheless I believe that it touches upon something fundamental. That said, anyone feel free to improve the question. LaTeX can be thought of as a complex algorithm ...
10
votes
2answers
173 views

How do I prevent a command from being invoked by a user while not disabling it?

Let's say I'm working on a LaTeX document collaboratively with someone else. I have defined a bunch of command aliases (such as \true for \top and \false for \bot); their precise purpose doesn't ...
4
votes
1answer
209 views

How do I select font for an environment?

I use \usepackage{fouriernc}. Now, I want to select the font chancery for theorem environment. How can I choose the font for an environment, for example, theorem environment? \documentclass{book} ...
6
votes
1answer
282 views

Alignment of margin floats

I am using the code from margin-floats-and-hyperlinks. It works nicely, however the figure generated is not left aligned in the margin as the caption below it is. I also tried \raggedright as ...
14
votes
3answers
436 views

Making a “For Loop”

I am trying to make a "for loop" that will iterate the variable reaches 1. However, none of the "for loops" I have found in the Internet works. These files will be distributed to other people and ...
13
votes
1answer
2k views

Page numbering at the top centre

I'm trying to place page numbering at the top centre (as required by submission guidelines at my university). It should be a very easy thing to do, but it seems impossible... I spent a day ...
6
votes
2answers
2k views

tikz: position label halfway along arrow shaft

The following code draws an arrow from a to b with a label g. The label looks like it is too far to the right, and not centered. \[ \begin{tikzpicture} \node (a) at (0,0) {$a$}; \node (b) at ...
1
vote
1answer
208 views

How can I add borders

Given this, how can I add a border around? \begin{ttfamily} \begin{lstlisting} g@g0001:~$ cd Desktop g@g0001:~/Desktop$ cat script.sh #!/bin/bash echo $1 `date` g@g0001:~/Desktop$ ./script.sh ...
8
votes
1answer
591 views

The line spacing in the list of algorithms

This is my code: \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[chapter]{algorithm} \renewcommand{\baselinestretch}{1.5} \begin{document} \begin{spacing}{1.2} ...
1
vote
0answers
657 views

TeXShop is not compiling [closed]

I installed MAC OS X 10.6.8 some weeks ago. Whenever I compile .tex file the following message turns up: "Can't find required tool. usr/textbin/pdflatex/simpdftex does not exist. Perhaps ...
4
votes
1answer
737 views

package right similar to tufte-book

Is there any package right similar to tufte-book? Using \marginpar, the following (Default) could be produced, but I want to have the Target; i.e. to spread the page header over the margin. ...
3
votes
3answers
406 views

How to fill an underfull box in footnote with url?

Could someone help to correct the warning I get related to an underfull box with the following code? I have tried \hfill, hspace*{\hfill} etc with no luck. \documentclass[twocolumn,draft]{svjour3} ...
10
votes
2answers
1k views

Problem with custom width of nodes in TikZ

I'm in trouble with some nodes, I'd like to get your help. I'm trying to set the text width of a node, but when I declare this parameter, there is something wrong. Maybe there's something missing in ...
4
votes
1answer
561 views

Page number alignment

This is my code: \usepackage[french]{minitoc} \fancyfoot{} \fancyfoot[RO,LE]{ \textbf{ \small \textsf{\thepage}}} \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} ...
1
vote
1answer
649 views

How to place an image in bottom left hand corner on every page? [duplicate]

Possible Duplicate: How do I add an image in the upper, left-hand corner using TikZ and graphicx I would like to place a small image in the bottom left hand corner of every page of my ...
12
votes
1answer
248 views

How do I get the author and the year in square brackets?

I have to following problem. I'm working on a presentation. Therefore I need, when I cite a paper or something else, the whole name and year of the paper. Everything went well until now. When I cite ...
6
votes
1answer
223 views

What is the state of support for (Unicode) Indic scripts in Context?

I have used XeTeX for typesetting a book using Unicode Malayalam. It is working perfectly and the production is fine. Reading about ConteXt, I learn it is more suitable and flexible for book ...
3
votes
1answer
319 views

Changing the mark of endnotes

I am using both footnotes and endnotes in a chapter with the help of the endnotes package. However, both footnotes and endnotes are numbered by Arabic number. I would like to keep the Arabic numbers ...
8
votes
1answer
238 views

How to fix a figure at the top or bottom of a column within multicol?

Within the multicol environment I want to be able to fix a figure to be displayed at either the top or bottom of a column (as in a scientific journal). The figure environment cannot be used in ...
1
vote
2answers
96 views

Defining a macro with if statements [duplicate]

Possible Duplicate: Piecewise defined function in tikz or tkz-fct I wish to write a macro that gets a number x. If x is smaller than 1, it should return x, otherwise, it returns x^2. I need ...
7
votes
2answers
524 views

Making mdframed paragraph behave like normal paragraphs in terms of spacing

I'm using the mdframed package to highlight a paragraph with rules on both sides. However, the mdframed-environment creates a box for the paragraph inside of it and so the spacing around it is ...
9
votes
6answers
361 views

How can “execute at begin node” be used with special characters like curly braces? (or: how to raise node content)

I'd like to define the following style: test/.style={ execute at begin node={\raisebox\{-0.2cm\}\{}, execute at end node={\}} } and use it like \documentclass{article} \usepackage{tikz} ...
0
votes
1answer
325 views

How to Reference a pgfplotstable

I am still generating a table from a cvs file with the pgfplotstable package. In my text I will reference to the generated table but I did not know how to do this. Normal your make a \label{tab:foo} ...
1
vote
1answer
856 views

How to input Chinese characters to LaTeX [duplicate]

Possible Duplicate: How does one type Chinese in LaTeX? I am a Chinese college student and I want to write a resume with LaTeX; I have searched the Internet, I have heard a package called ...
11
votes
5answers
331 views

Is it possible to call a latex macro at the command line in order to return a string, not create a document?

I'm curious as to whether there is a way to pass a small amount of LaTeX code to a compiler at the command line and return the string corresponding to the value of a variable or length. For instance ...
5
votes
2answers
622 views

Longtable and page break

I'm writing the use case documentation for my Software Engineering project. I'm using longtable to get a template that spans over multiple pages. \documentclass{article} \usepackage{array} ...
4
votes
2answers
543 views

shrink top and bottom margin of elsarticle template

I am using the latex template elsarticle from Elsevier, but I find that the top and bottom margin of this tempalte is too large, I would like to shrink the top and bottom margin. How can I do this? ...
8
votes
2answers
6k views

How to change the shaded color of the \rule{…}{…} command?

To change the shaded color of the \rule{...}{...} command, one solution is \textcolor‎{‎blue‎}{\rule{2cm}{2cm}}‎ but I want to know how can I directly change the color of this command globally?
7
votes
1answer
412 views

How to get, both fork down and right in a TikZ tree or diagram

I need your help with a diagram, where I want to place both fork down and right to organize my concept map. If someone have a better solution, please give me some advice. Here´s the code: ...
4
votes
1answer
240 views

Inconsistent footnote size in converting LaTeX to OpenOffice.org

When a LaTeX document containing 2 footnotes — footnote #1 is plain ASCII, but footnote #2 has diacritics or other extended characters — is converted to odt (OpenDocument Format), the number in ...
3
votes
1answer
55 views

How to replace the “Go‎ ‎to‎‎ ToC” with an image in this file?

In the following code, how can I replace the "Go‎ ‎to‎‎ ToC" with this image in the output pdf? \documentclass{article} \usepackage[top]{background} \usepackage{lipsum} \pagestyle{empty} ...
3
votes
1answer
417 views

Hyperref, Natbib: Curious backref behaviour

I have prepared the following MWE from the answer I found at formatting-back-references-in-bibliography. If the option backref=page is forwarded to hyperref with \hypersetup then the back references ...
6
votes
2answers
2k views

Changing typesetting engine from pdfLaTeX to LuaTeX in TeXnicCenter

How does one change the typesetting engine from pdfLaTeX to LuaTeX in TeXnicCenter? Is it sufficient to just change the path to the .exe in Build->Define Output Profiles?
10
votes
2answers
200 views

Is there a better formatting option for an alternated enumerated/itemized list?

I'm making a questions/answers page where answer follows the question. The questions are enumerated while the answers are not. Questions are using one color while answers using another one. In order ...
7
votes
1answer
390 views

Creating document like this [closed]

I am trying to create a handout like the one in the following link. Image: But I can't get it. Can someone help me create such a document.
20
votes
2answers
2k views

Polyglossia vs Babel

Could someone summarize features which are (1) common and (2) different for the babel and polyglossia packages? I know that babel 3.8 (current version) fails to run for some languages (eg, Russian) ...
2
votes
0answers
64 views

special latex words [duplicate]

Possible Duplicate: How to write (La)TeX (with braces) [or any other TeX-related logo] I'm looking for other specially formatted words in LaTeX similar to \LaTeX or \TeX. Does anyone know ...
5
votes
1answer
449 views

How to fix the overlapped nodes with long text, in TikZ. Concept maps

I'd like to get helping from you. I want to have paragraphs in the nodes of the concept map with Tikz, I mean, texts with multiple lines. I have a problem with texts, the nodes are overlapped. Here's ...
20
votes
1answer
937 views

Consistant formatting with siunitx and pgf: Thousands Separator

I like the default behavior of the siunitx package in that the thousands separator is not applied to four digit numbers, but is applied when the number of digits exceeds four. In documents that ...
8
votes
2answers
396 views

wrong page with pageref if using thmtools

I don't know if the following issue is related to any other question already asked. My issue and minimal looks very simple. \documentclass{book} \usepackage{hyperref} \usepackage{amsthm} ...
2
votes
1answer
266 views

How does one framebox a proof?

I am trying to frame box a proof I have written For instance \documentclass[11pt]{article} \begin{document} \framebox{ \emph{Proof} \\ \text{content of proof goes here} } \end{document} ...
4
votes
2answers
156 views

Automatically run a LaTeX3 function on the document environment

Is it possible to define a package so that it will automatically run a LaTeX3 function on the entirety of the document environment? If I define a function similar to the following: \cs_new:Npn \demo ...
5
votes
1answer
109 views

What's going on with this syntax “somename/.style={…}”

I'm finding the following preference loading syntax popping up a lot in the newer packages: From tikz \tikzset{help lines/.style=very thin} From tcolorbox \tcbset{noparskip/.style={before....}} ...
4
votes
1answer
441 views

How to display (inline) LaTeX commands properly?

When writing about LaTeX, I tend to use \verb, which could look like that: \documentclass{article} \usepackage{lipsum} \begin{document} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ...
4
votes
2answers
1k views

Automatically “Trash Aux Files” after successful typesetting in TeXShop

Is there some way to automatically fire the "Trash Aux Files" command after successful typesetting in TeXShop, without manual action on the part of the user?
4
votes
2answers
1k views

How to make front-matter page number non-bold in ToC?

Shown in the following pic: It seems the Roman page number for front-matter look too dark in ToC, so how to make it as normal font but not change the bold Arabic number for chapters?
1
vote
1answer
202 views

Is it possible to write algorithms in LaTeX? [duplicate]

Possible Duplicate: How to present a vertical multiplication/addition Like, for example: 9 + 8 --- 17 Is this possible? Is there a specific LaTeX thingy (like \frac), or is custom ...
15
votes
5answers
8k views

Is it possible to put MS Excel graphs into a LaTeX document?

I will be using Microsoft Excel to produce graphs and I was wondering if there was a simple way to put those graphs into a LaTeX document?
5
votes
1answer
285 views

mdframed and a title with a footnote

I have put the title of my text in mdframed, however the title has a footnote. After I LaTeX the file, the footnote appears inside the frame rather than in its usual place, i.e. at the bottom of the ...

15 30 50 per page