2
votes
1answer
2k views

How to reduce space between header and text?

I m using mdframed as header. Now i want to reduce the space between header and first line on page. How can i reduce the space? \documentclass{article} \usepackage{array,multirow} ...
13
votes
1answer
3k views

pgfplots - Placing Nodes on x Coordinates of a Plot

I want to plot some graphs in pgfplots and want to place nodes on the exact same x coordinate of the plot. The position of the note has to be set in x direction but free in y direction. Here is one ...
19
votes
1answer
32k views

How to reduce space between image and its caption?

I m importing one image in latex document. But caption has bigger font than my normal text on page. \documentclass{article} \usepackage{graphicx} \begin{document} Some text... ...
2
votes
1answer
239 views

extra alignment tab error

I just started using LaTeX last night, and I was trying to copy a general format I found on wikibooks. I wrote a python script to get 30 different stocks and their quotes, and I made it generate this ...
11
votes
2answers
522 views

Visualize data on a variable-radius graph/network

I am trying to visualize the output from a simulation model I have been working with. The simulation finds the steady-state solution to a system of differential equations on a variable-radius (and ...
23
votes
1answer
398 views

protrusion issue - pdftex bug, microtype bug or LaTeX bug?

While finishing an article for TUGboat I came across a strange behavior of the protrusion mechanism of pdfTeX (as implemented by the microtype package). The character \ in typewriter has a negative ...
1
vote
2answers
255 views

Multiple Plot query under a same caption with different labales problem [closed]

I have 6 figures and I want to plot them under a same caption with different labels. I have tried two codes for plotting but they are not working. Codes: \begin{figure}[htp] \centering ...
2
votes
1answer
245 views

xkeyval's \presetkeys

Please is there a way to avoid xkeyval package bombing out in endless loop, as implied by the following simplified case? \documentclass{article} \usepackage{xkeyval} \makeatletter ...
3
votes
1answer
575 views

microtype protrusion incompatible quote, changemargin and adjustwidth environments

Here is my problem. I need some text to have a reduced margin. Unfortunately, none of the suggested methods of doing this appear to be compatible with microtype protrusion. Is this a bug? Is there a ...
0
votes
1answer
249 views

Xetex: use OTF font (MacPorts)

I have a problem using my own OTF fonts within a LaTeX document. I read I should compile the document with xelatex which I have installed on my Mac with MacPorts (package texlive-xetex) My minimal ...
34
votes
2answers
21k views

Comment out sections of text in bib file

What's the correct way to comment out sections of explanatory text (included for humans to read) in a .bib file? I would like biber/biblatex to simply ignore this text. When I put in text like ...
20
votes
1answer
2k views

How does italic correction work?

How does italic correction work? Where are the correction values looked up? Why is it not automatically included? What is the effect of multiple \/ or \/ in odd places such as between letters or ...
2
votes
1answer
299 views

Something wrong: LaTeX with listings

I'm trying to get green comments and blue javadocs. But with this code I can't get blue javadocs, always I get all comments green: \usepackage{color} \definecolor{gray97}{gray}{.97} ...
2
votes
1answer
1k views

How to use italic correction for slanted letters (\textsl)?

Is there italic correction specific to slanted letters (\textsl)? I always use \textsl for slanted letters (not \slshape), so would redefining \slshape to add an \/ at the end be the easiest way of ...
3
votes
1answer
477 views

Left numbered equation inside list environment

I use the mathtools package with the leqno option in the memoir class. When inside a list environment, the equation label is misaligned. \documentclass{memoir} \usepackage[leqno]{mathtools} ...
12
votes
1answer
3k views

What fonts can I use for writing in Cyrillic in LaTeX

What other fonts are available to write in Cyrillic in LaTeX beside T2A, T2B, T2C?
3
votes
1answer
317 views

Quotes missing around title of arXiv papers (biblatex + biber)

I am using biblatex and biber. Here is a sample LaTeX file. \documentclass[11pt]{article} \usepackage[backend=biber,firstinits,style=numeric-comp,maxnames=99]{biblatex} ...
6
votes
1answer
748 views

Typesetting classical data structures in tikz

During this discussion an example image generated with TikZ was given by Christian R. but no code was provided: It would be great to have the code snippet that implements it, because I think it has ...
5
votes
1answer
476 views

Tufte-Latex: How do I stop marginfigure from inserting inline space?

I want to use marginfigure, but it is inserting space inline. Check out my minimal example: documentclass{tufte-book} \begin{document} Hello\begin{marginfigure}$2+2=4$\end{marginfigure}I'm new here. ...
6
votes
1answer
155 views

Going back to the end of the previous paragraph

Is there a way to define a TeX command that checks if the current position in the text is at the beginning of a paragraph, and if true, then to go back to the end of the previous paragraph? Edit: The ...
2
votes
0answers
619 views

Too much time spent in compilation [closed]

I have created my thesis and I have a problem enough annoying. I have created the appendix of my thesis and put into all tables. I used as font mathptmx. When I try to compile it takes so much time ...
13
votes
1answer
2k views

Why do I have overfull \hbox when I use inline math without line breaks

To prevent line break within equation I use following LaTeX command: ${r^2 = x^2 + y^2}$. Unfortunately it gives me Overfull \hbox (12.4459pt too wide) warning. Why LaTeX doesn't move whole ...
5
votes
1answer
524 views

How to typeset multiple equations center aligned but with single eq. number?

I want to typeset several equations with only one equation number vertically centered, and every equation horizontally center. I know two options. One is aligned environment within equation, which ...
4
votes
2answers
399 views

settototalheight issue with empty lines

I am using \settototalheight to calculate the height of the text in order to use needspace correctly. This is the code i am using : \documentclass[12pt]{article} \usepackage{graphicx} ...
7
votes
1answer
144 views

Put a pstricks cover at the beginning of a file without affecting the rest of it

I have two files. One is a pstricks cover. The other is the interior of the book. They both are fine on their own. I would like to put the code for pstricks cover on the first page of the pdf and ...
1
vote
1answer
332 views

Small font size for ampersand

I want & symbol in small font size. But \small{\&} produces italicized ampersand symbol like here. How can I get the small fontsize & symbol? Edit: figured out that, the italics was ...
7
votes
1answer
781 views

How to install metafun?

How can I install the metafun metapost macros? I have tried to tlmgr install metafun, but it cannot find it. Also a search for “metafun” on ctan yields only a introductory tutorial on ConTeXt, in ...
1
vote
2answers
526 views

How to suppress some fields in abbrv.bst

I am using the abbrv style under the natbib package for my bibliography. Is it possible to suppress, e.g., the field "SERIES", in the output? Here is a item in my .bib file: ...
8
votes
3answers
431 views

Useful macro definitions

This question is related to Question: linebreak in macros, however it is not asking for the same information and I separated it out: In my documents, I make use of commands like the following: ...
1
vote
0answers
36 views

Memoir, section numbers without the chapter number [duplicate]

Possible Duplicate: How to leave out chapter numbers in section numbering I'm setting a book with memoir. For sections (and below) I get the chapter number, plus the section (or sub-. etc.) ...
9
votes
1answer
2k views

Why do the output fonts of Latex often appear fuzzy? [duplicate]

Possible Duplicate: Why are Bitmap-Fonts used automatically? When I look at the output of my LaTeX files, the fonts appear markedly more blurry than standard computer output. Why is this? ...
4
votes
1answer
460 views

knit with `pdflatex --shell-escape myfile.tex`?

I want to insert a word count into my .Rnw file. To do this, I have the following line in myfile.Rnw: \makeatletter\@@input|"echo `texcount -1 myfile.tex`| cut -c1-4"\makeatother But this requires ...
4
votes
1answer
137 views

How to place all chapter titles on verso pages in ConTeXt?

I need to set all of the chapters within a document to begin on the verso, or left-hand pages. How can I get ConTeXt to add a blank page before each chapter title if the chapter title does not appear ...
10
votes
2answers
386 views

Savebox and usebox unexpected behaviour for the box with index 10

I have found that when saving and later using boxes the box with index 10 behaves differently to all other. Here is simple demo that shows different behaviour. In preamble I define this commands: ...
1
vote
1answer
107 views

Raised image on front page

I want to put an image on my front title page, but a little above the mergins (so it would start on almost the very top of the A4 page). How do I manage this?
5
votes
1answer
6k views

Problem with header/footer position

I wanted a document with a header/footer on the first page and only a slighlty different footer on every other page. If I do it like suggested in different places: ...
4
votes
1answer
1k views

what is the correct way to check for latex, pdflatex and html in the same latex document?

What is the correct way to check for if one is running in pdflatex vs latex vs. an html processor such as tex4ht? Suppose I have some latex code that I only want to show up in html, and not show up ...
8
votes
2answers
377 views

How to pass \jobname with whitespace to external shell command

I need to pass \jobname to some external shell command and read back its input using the \input{|"<shell command>"} syntax. However \jobname may contain whitespaces. So how to quote it for the ...
11
votes
1answer
485 views

biblatex: How to suppress back references for certain citations?

When using BibTeX's standard citation commands, such as \cite, typically back references are generated (if enabled) in the bibliography pointing back to the place of citation. That's a nice feature. ...
9
votes
1answer
373 views

Macros and pgfmath within put in picture environment

I am trying to put some TikZ pictures into a Beamer slide to enhance readability. The position of the TikZ pictures on the slide will depend on how much text comes before. Since there will be many ...
3
votes
1answer
787 views

Maroon faded effect

how can i made a faded version of this maroon? i want to get the same result of the classic thesis halfgray but in maroon version. i would to have a faded effect as if it is in transparency. Like this ...
4
votes
1answer
406 views

How to linebreak when using \rotatebox inside a tikz node?

I would like to know how I can get a linebreak inside a rotated node using tikz. I tried to use the align=center option together with \rotatebox{}{}, but i get an error. Here is an example of a ...
0
votes
0answers
103 views

How do I make a Word file out of a .tex file? [duplicate]

Possible Duplicate: Converting TeX to MS-Word for recruiters asking for resumes in word files Since some resume websites only accept .doc (word files). Now, I'm not a pro user, just have ...
3
votes
1answer
252 views

How to make the legend border tighter?

I am trying to make the legend border tighter. What is the \begin{axis}[legend style={...}] property to adjust the legend border (both width and height of the border)? \documentclass{article} ...
8
votes
1answer
193 views

TikZ doesn't fill when node coordinates are used

Can someone please explain me why the following code doesn't result in a fill? And why, sometimes, I get such "very thin lines" artifact (that's visibile in my picture)? \begin{tikzpicture} \node ...
14
votes
3answers
2k views

How to set a counter to double the value of another counter?

The title says it. Lets have to counters: \newcounter{myCount} \newcounter{anotherCount} I set myCount to some value for example 10 \setcounter{myCount}{10} How do I set counter anotherCount to ...
38
votes
1answer
3k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
14
votes
4answers
898 views

How to 3D rotate figures in display

I have a bunch of 2D figures which I like to use latex to display them in a row (side by side). Since the number of the figures is a lot I cannot show them all horizontally. For this I would like to ...
5
votes
1answer
256 views

Using cleveref with newenvironment

I am trying to refer to a newenvironment using cref from the cleveref package. Here is a MWE that demonstrates what I am trying to do. \documentclass{article} \usepackage{cleveref} % define a ...
1
vote
2answers
1k views

Is it possible to make LaTeX retrieve date information from system clock?

Well, this question is pretty weird ;) I know TeX is strictly sandboxed, but I guess there is at least some possibility? After all, system clock (for instance, UNIX time on UNIX-like systems) is only ...

15 30 50 per page