All Questions

7k views

Reducing bibliography font size

I am using the thebibliography command in LaTeX to generate a bibliography under a "References" heading at the end of a paper. My bibliography is not stored in a separate TeX file, but rather is just ...
1k views

Mini Table of Content \minitoc drove itself crazy (i was on board) … how to fix?

I am using minitoc. In the main file, \usepackage[english,tight]{minitoc} ... ... \begin{document} \dominitoc \frontmatter ... ... \input(myChapter_one) And at each chapter (separate ...
560 views

Is \toks necessary to define \g@addto@macro? Can token registers be avoided in generel?

In LaTeX2e kernel, there is a useful macro \g@addto@macro: \long\def\g@addto@macro#1#2{% \begingroup \toks@\expandafter{#1#2}% \xdef#1{\the\toks@}% \endgroup} However, I think the ...
470 views

MakeIndex and \alph

Whilst reading the manual for MakeIndex I stumbled upon: MakeIndex assumes that all page numbers are either arabic or lower-case roman numerals; it assumes that pages numbered with roman ...
873 views

Spacing in multiple choice question

I tried to make multiple choice question using the following code... but the choices are not uniformly distributed in a single line... I used \hfill by replacing \penalty -50\hskip 2em plus ...
651 views

Why am I getting overfull with this parcolumns lstlisting?

I'm sure this is a simple question but would anybody be able to point out to me why the following generates overfull \hbox errors for the two \colchunk macros? It doesn't appear LaTeX needs to do any ...
6k views

Smaller \lbrace than expected [duplicate]

Possible Duplicate: How do I format this equation in LaTeX? p_{GL}= \lbrace \begin{array}{@{} l c @{}} 0.59p_R+0.3p_G+0.11p_B & \text{p es un pixel del fuego} \\ 0 ...
1k views

Command behavior depending on current environment

I would like to write a LaTeX macro whose code depends on the parent environment such as: \newcommand\test{ %if current_environment=env1 test1 %elseif current_environment=env2 test2 %else } ...
614 views

How do I format this equation in LaTeX?

I want to write this equation in Latex. Sorry, I don't know what's the specific name of this kind of equation. I know title is so general.
520 views

Identifying a symbol

I'm looking for the symbols or font which produced these symbols (in math mode): S and K I have no idea which program produced the document in which I found these symbols, so I'm pretty clueless ...
471 views

Arguments expansion in IfSubStr

EDIT: Simplified question How can I make the following code print "Yes"? \IfSubStr{\textbf{AAA}}{AAA}{Yes}{No} Full question I'm playing with xstring's IfSubStr, but I don't really understand ...
630 views

Calculating checksum

I would like to calculate a checksum in LaTeX. My problem is that I don't know how to get the numeric value of a char. Here is the pseudo code of the algorithm: var input = "123456789"; car output = ...
460 views

Is it possible to define a multicols{2} preamble switch that works for \chapter?

With standard LaTeX, issuing \twocolumn in the preambe causes the document to be typeset in two columns -- except that \chapter will produce separate one-column chapter headings. \documentclass{book} ...
174 views

Where to find a list of packages at CTAN?

I am looking for something similar to http://www-sop.inria.fr/apics/latex/styles-eng.html (but more recent than 2001) i.e. a list of packages/styles on CTAN containing package name - file name - ...
1k views

Problem using \noopsort to sort on 'year' using natbib

In my efforts to familiarise myself with BIBTeX and natbib, I've been playing with the xampl.bib database which is shipped with the TeXLive 2011 distribution. I created a document (using the ...
1k views

Bibliography entry out of alphabetical order with character Ş

I'm pretty new to TeX so please forgive me if this requires just a simple solution. I'm writing a thesis that uses almost 100% English characters exclusively, except for a case where an author I cite ...
1k views

How do I get the concrete font for math only?

Is there a package that loads the concrete font, but only for the math, not for the normal text?
4k views

How can I improve this family tree in TikZ?

To answer a question about how to draw family tree on LaTeX-Community.org, I created an example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} ...
1k views

Latexmk with makeindex and -output-directory [closed]

My current .latexmkrc looks (more or less) like this: \$pdflatex = "xelatex -src-specials -synctex=1 -interaction=nonstopmode %O %S"; # for nomenclature add_cus_dep("nlo", "nls", 0, "nlo2nls"); sub ...
3k views

Longtable alternative for twocolumn documents?

Is there a recommended method for incorporating multi-page tables into twocolumn documents? It's clear that the longtable package isn't set up to deal with documents of more than one column. Is ...
7k views

Different spacing around equation and align

In my document, I use align and equation, depending on the length of the equation. They are spaced differently, as you can see on the picture below. I read that comments in the empty lines would ...
132 views

Hyphenate a series of consecutively numbered references [duplicate]

Possible Duplicate: Citing a range of papers (using numeric keys)? I am using the package bibentry and the \cite command to include numerical references to a bibliography. If one cites ...
2k views

Forward-inverse search using SyncTeX with the precison of a single word

I would like to know if SyncTeX supports forward search and inverse search in a precision of a single word. The "default" implementation in both TeXLive and MikTeX only seems to be able to synchronize ...
1k views

Identifying the section an equation is in

Suppose in my document in section 1 I have a labeled equation, say \label{eq1}. Then much later, say in section 8, I want to reference this equation and the section it is in. I know \ref{eq1} will ...
597 views

Splitting figures' caption apart

I'm using stock figure environment and \caption{} command to typeset figures in my document. Is there any sane way I can get 'Figure N' part to be written right below the figure, and the actual ...
889 views

Optional argument to an environment inside align

I have lots of matrices so I want to define a mat environment. I sometimes need the matrix to have right-aligned columns so I am using mathtools and I want to have an optional argument that is ...
39k views

Write fraction out of equation

I want to write as a math fraction 1/4 " ( a quarter of inch). I want to write this fraction out of an equation because is a characteristic of an element.
4k views

Background color boxes around complete figure in LaTeX [duplicate]

Possible Duplicate: Rounded corner colored box around figure Make all figures and tables framed by default? I'd like to make colored boxes (a light graytone) around my figures including ...
213 views

How to get Carriage Return instead of ^^M when I save a file

Sorry for the long next code but if I modify a part of the code, another problem appears in another part. The idea is to use an environment to catch an example, then I display the code of the example, ...
1k views

Add two lengths in raisebox argument, without the calc package

I've seen people use such constructs as \raisebox{-\height+\baselineskip}{...}, which works well using the calcpackage. What equivalent would you use to achieve the same behaviour without the calc ...
887 views

Referencing externalized pgfplots with subfig and cleverref

I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
2k views

Three different captions: longtable

My problem is that I have tables that are three pages long. Thus, I would like to have three different captions when using the longtable package. The similar question How to use a longtable with only ...
8k views

Best way to make circuit diagrams for LaTeX?

I'm using PCTex (WinXP) and looking for the best way to make circuit diagrams for LaTeX. Something that will allow me to include many arrows, comments and equations around the schematic. The ...
3k views

How do I get a equals sign under letters?

To show that a letter is a matrix my math book puts a equals sign under the letter. How do I do this?
13k views

Using 'Letter' paper with pdflatex

Apparently, the LaTeX distribution and its associated classes and drivers, as well as files in one's Linux distribution can all affect the page size that is ultimately used for the output of dvipdf, ...
443 views

Table/Figure Layout

I'm interested in good practice for table (tabular) and figure layout, especially in good references. What do typographers have to say about this. Please provide references if you can. To focus the ...
5k views

Typesetting UTF8 listings with German Umlaute

I'm having some issues with listings that include German Umlaute. The following example code generates a completely messed up PDF. \documentclass{article} \usepackage[utf8]{inputenc} ...
1k views

How to show the current coordinates for mark=text?

In the following example I'm using the library plotmarks to set a text on the given path. Now I am interested in showing the current coordinates of the marker instead of p. ...
612 views

How to trim .tex for each filename read from an external file?

I have an external text file that contains a list of names of TeX input files. The names have trailing extensions .tex. For example, the external text file named data.txt contains the following list: ...
12k views

Why is \linebreak failing?

Consider the following minimal, using \linebreak: \documentclass{article} \begin{document} It is impossible to say how first the idea entered my brain, but, once conceived, it haunted me day and ...
290 views

How to allow blank spaces between arguments of a macro

For example, I would to write \defpoint [option] (1,2) {A} instead of \defpoint[option](1,2){A}. What is the best way to build this kind of macro? Only the argument [...] is optional and if spaces ...
397 views

What program can display PDF tooltips on a Linux system?

I am trying to put in some text tooltips in some tikz graphic. I have found an example using pdfcomment, but after I have used pdflatex and opened it with Evince, I don't see any tooltips. What am I ...
894 views

pgfplots: shadow for markers

I was wondering if it's possible to add shadows to markers within pgfplots. I tried the circular drop shadow option (from TikZ) which unfortunately had no effect at all. I also read that one can ...
501 views

Is something like “or” acceptable in conditional tests defined by \newif?

I am using conditional tests in my .cls file which has two options "final" and "draft". I am rather familiar with conditional tests but I am just curious to know how to define the "or" in the ...
2k views

Process a string with replacing and splitting

I have an input string like "123-45" or "1-3-5" or "2-4; 6-8" where the minus signed should be removed. This is easy with the xstring package. \StrSubstitute{#1}{-}{} The next step is to split the ...
2k views

Chapter reference not displaying

I am involved in a writing a large document with a co-author who set up the LaTex files that we're using (i.e., I don't have complete autonomy in what I change). We have a root file which does two ...
7k views

How to make a tikz node, top-aligned with the rest of the text?

If I write before-text \begin{minipage}[t]{5cm} line1\\line2\\line3\\ \end{minipage} after-text I get a box, whose top is aligned to the top of "before text". I would like to have the same, when ...
711 views

How to synchronize sidewaystable with the odd/even page?

I have two tables, T1 and T2. I want these to appear in two pages as if the head-side of the table remains at the binding side of the book. Like this |||||>|<||||| |||||>|<||||| ...