4
votes
1answer
115 views

How can I randomize a text itemization in ConTeXt?

I've defined my item groups as: \defineitemgroup[institm] \setupitemgroup[institm][1][text][symbol=2, indentnext=no, ] And \startinstitm {\bf Contributors } \item Foo Pty Ltd {\sc nsw} ...
9
votes
1answer
165 views

Can TeX detect a newline at the end of the file?

Is TeX able to distinguish beween a file containing, say, the single character a/ byte 97; and a file containing this same character followed by a newline marker (which is system-dependent)? I had a ...
1
vote
0answers
808 views

Latex, remove blanks between sections in a chapter [closed]

I am writing thesis with 10 chapters, each of them has multiple sections. In Latex, I put each section in a separate file. But, there are blank spaces between sections in each chapter in the pdf ...
3
votes
1answer
659 views

Which editors color/highlight between the $…$ with syntax coloring? [duplicate]

Possible Duplicate: LaTeX Editors/IDEs I'd like to know which TeX editors have syntax coloring options which color/highlight the math mode text between the $...$. This way it is easy to see ...
3
votes
1answer
987 views

TikZ edge thickness causing errors in foreach loop

I'm experiencing some weirdness in making a simple TikZ diagram (a comb-shaped graph with variable number of nodes). The weirdness comes from the style applied to the edge paths. Here's the ...
3
votes
1answer
416 views

Roman numerals appear in toc but not in document

I'm writing a thesis and sections are required to have roman numerals in both the toc and the document itself. The pertinent document code looks like this: \documentclass[twoside,12pt]{report} ...
12
votes
2answers
1k views

PGFplotstable: Is it possible to set a number format for a *row* instead of a column?

Using pgfplotstable, it's straightforward to set a column number format using columns/(columnname)/.style={(format)} What I would like to do is change the number format of a particular row. In my ...
1
vote
0answers
385 views

Beamer buttons change zoom in Adobe Acrobat [closed]

I am using Beamer to create slides (the editor I'm using is Bakoma Tex). I can add buttons to go back and forth between slides using the \hyperlink command. When I open the slides as pdf (in Adobe ...
9
votes
1answer
489 views

Expl3 syntax highlighting for TeXworks

Does anyone have a syntax pattern for TeXworks’s syntax-patterns.txt that will correctly highlight Expl3 code? I.e., something that will recognize that the entirety of \cs_new:Npn is a command ...
2
votes
1answer
1k views

utf-8 characters in latex math mode

I'm using utf-8 characters like "ğ" or "ı" in math-mode in LaTex, but it does not render the characters as it should. Outside of math-mode I do not have this problem. My preamble with respect to font ...
5
votes
1answer
499 views

commutative diagram having drawings as objects

I need to draw a commutative diagram having drawings as objects, like in this link which is also shown below. I have some problems: xy-pic "slants" the objects; "matrix" library in TiKZ is not ...
10
votes
1answer
612 views

Pgfplotstable: how can I add percent signs (and respect dec sep align)?

My data contains a column with numbers like 0.01 or 0.9412 which I want to display as 1.00% and 94.12% . I would like to declare the column by means of dec sep align. How can I do that? [This ...
4
votes
1answer
1k views

Colon after appendix number

How do I get a ":" to show up after Appendix in my ToC. Right now I have APPENDIX A. Classification experiments but I want: APPENDIX A: Classification experiments In the preamble I am ...
13
votes
1answer
141 views

Difference between “hbox group” and “adjusted hbox group”?

eTeX's \currentgrouptype distinguishes two types of \hbox group types \hbox{\showthe\currentgrouptype} % 3 "adjusted hbox group" \noindent \hbox{\showthe\currentgrouptype} % 2 "hbox group" Looking ...
11
votes
1answer
3k views

Citation style in biblatex: (1) get rid of first names; (2) remove comma before year

I'm trying to use biblatex and biber so as to have access to @online, etc. But I'm quite overwhelmed. In-text citations used to just show the last names. Now they are including first names or ...
7
votes
1answer
811 views

Programatically style words/sentences/paragraphs based on arbitrary metrics?

It'd be nice to be able to style words or sentences or subsections based on arbitrary metrics. For example, it might be useful to highlight words based on their length - bolder highlighting for longer ...
15
votes
3answers
665 views

Unbalanced output routine

The TeX primitive \output behaves almost like a toks register, except in the fact that it is always surrounded by braces. For instance, after \output={\plainoutput}, the result of \showthe\output is ...
8
votes
2answers
2k views

How to typeset the name of a category?

I'm LaTeXing some category theory, and typeset the names of my categories in boldface (Set, Rel, ...). Since I might want to change that, I put \newcommand{\catname}[1]{\textbf{#1}} ...
4
votes
0answers
472 views

TeX-run-Tex wrong type argument in emacs [closed]

I use such a function for compiling LaTeX in emacs (AUCTeX) taken from here (accepted answer by Jouni K. Seppänen): (defun run-latexmkk () (interactive) (let ((TeX-save-query nil) ...
40
votes
3answers
54k views

How to specify a fill color in RGB format in a node in tikzpicture?

I am just trying to get a rounded corner box with some text in it. The text color will be white and the box will be filled with a particular color. The preamble includes: \usepackage{tikz} ...
19
votes
1answer
12k views

What is the thickness of \hrulefill

This seems like a simple question ... I know from this question that \hrule and presumably \hrulefill have a thickness of 0.4pt. I think \hrule is a primitive, so does that mean that you cannot ...
8
votes
1answer
1k views

Beamer: display previous graphics (in an overlay) in a lighter color

With Inkscape (software to create vector images) I created a file with several layers. Thanks to a very useful script (beamerscape), these layers are then saved as separate PDF files. Next, using ...
5
votes
2answers
4k views

Specific margin size in memoir

I am writing my thesis nowadays, and one of the few things the instructions have specific recommendations about is page size and margins. The page should be A4, and the margins should be: (I revised ...
6
votes
1answer
126 views

Token expansion with the token library

I don't understand how the token library of luatex works. \documentclass{standalone} \begin{document} \def\mymacro{A} \directlua{% t = token.create ('mymacro') token.expand(t) ...
34
votes
1answer
1k views

TeX as the basis for data driven document generation system?

I am in the early stages of trying to replace an existing document generation system based on Microsoft Office apps (Word and Excel). The system runs once a year to generate over 300,000 individual ...
5
votes
1answer
2k views

Glossary as appendix

I'm using the glossaries package to manage my glossary. This works nicely, except that it forces a page break and creates a huge heading saying Glossary that conflicts with the style of my paper ...
2
votes
0answers
116 views

Understanding some pieces of luatex the program [closed]

I'm looking forward the implementation of a tex.execute() command on the lua side in luatex. But it needs patching luatex the program and I have a dream: providing the patch... :) As I have nearly no ...
6
votes
2answers
3k views

underfull vbox (badness 10000) with memoir

Sorry if this question has been asked very often, but I can't easily find an answer to my specific question. I am using XeLaTeX and the memoir class to produce a rather long document (100 pages) with ...
5
votes
1answer
474 views

How to print keywords into margin?

Many documentations and textbooks print essential keywords of a paragraph into the margin. Is there any package for this? Of course it wouldn't be all too complicated to define a custom command based ...
2
votes
1answer
982 views

is it possible to include tikz picture from a file

I have a tikz picture in a tex file \begin{figure}[ht!] \begin{center} \resizebox{.4\textwidth}{!}{\begin{tikzpicture}[ .... \end{tikzpicture}} \end{center} \end{figure} The ... portion is quite ...
6
votes
1answer
477 views

Automatic generation of tikzfading

I have a question similar to TikZ Fading Speed and defining a fading-style directly in the fill command but I can't figure out how to get a nice solution. I would like to, given a list of increasing ...
0
votes
0answers
64 views

How to escape single quote in lstlisting? [duplicate]

Possible Duplicate: Package listings: Error “Undefined control sequence.” because of single-quote-symbol? How to escape single quote ' in lstlisting? I tried \' and ''' but ...
3
votes
1answer
1k views

titlesec section font size incorrect

My dissertation requires the section title to be of the same font size as the text. I am using the titlesec package and I have provided these options: \usepackage[rm,tiny,center,compact]{titlesec} ...
11
votes
1answer
15k views

LaTeX: splitting the words

I have a quite long text, and I sometimes I have words breaking in a weird way, so I wonder if there is some command in LaTeX which will prevent the splitting of words in the whole document?
2
votes
1answer
559 views

How to escape backslash in rangeprefix?

I want to escape backslash to be used as a rangeprefix as follows. The current MWE does not work as expected because it still imports all codes rather than the codes sandwiched by document ...
1
vote
2answers
423 views

glossaries, fancyhdr: acronym not replaced properly

In the following example the acronym is not replaced properly in the header and look like in this screenshot: \documentclass{book} \usepackage{fancyhdr} ...
12
votes
2answers
2k views

How to download MacTeX 2011 now that MacTex 2012 is available

Is there a way to download the older MacTeX-2011? I am transitioning to a new mac and would prefer to have both MacTeX2011 and the 2012 version available. I thought I was in luck when I found the the ...
4
votes
1answer
764 views

Introducing a blank area in the header with a0poster

I'm writing a poster with a0poster and have to make the poster according to the conference instruction. In the header, left of the title, I have to leave some space so that the organizing committee ...
5
votes
1answer
333 views

How to center twocell arrows

I'm using 2cell (as in this previous question of mine: Natural transformation arrow ). I'd like to know how to center not just the twocell double arrow, but arrow with its name too. A picture is ...
1
vote
0answers
52 views

Why doesn't cleveref's \namecref work? [duplicate]

Possible Duplicate: Which packages should be loaded after hyperref instead of before? I'm trying to use cleveref's \namecref command to get the name of the type of section a label is in, ...
2
votes
1answer
510 views

Pagebreak and Verbatim environments

Given the following piece of code: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{fancyvrb} \DefineVerbatimEnvironment{shell}{Verbatim}{ commandchars=\%\{\}, label=\shelltitle, ...
2
votes
1answer
293 views

How to suppress page number on cover page? [duplicate]

Possible Duplicate: removing page number for title page I'm using the following code to create my front cover: \documentclass[twoside,11pt,titlepage]{article} ...
3
votes
1answer
3k views

How do one reset the section numbers in beamer?

I want to reset the section numbers when a part in beamer starts. So I tried: \setcounter{section}{0} That does not work. So after searching I found this: \makeatletter ...
8
votes
2answers
11k views

How to put code in beamer two column

I was trying to put code and a figure side by side in a beamer presentation. I tried two methods - one said in beamer documentation and other in standard LaTeX. But couldn't get the output. The two ...
5
votes
1answer
469 views

Counters for use in array/tabular cells

The following practical example \documentclass{article} \usepackage{array}% http://ctan.org/pkg/array \newcounter{tabcol}\newcounter{tabrow} \newcolumntype{C}{>{\stepcounter{tabcol}}c} ...
9
votes
3answers
279 views

Using \input|texlua… to emulate \directlua in pdfTeX

When --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a ...
10
votes
2answers
2k views

Strange line spacing effects in longtabu

I got some strange effect with longtabu: As you can see the line with λ seems to be closer to the above line than to the one below of it. I cant’t figure out why … This is the code with which I ...
5
votes
2answers
2k views

How to use the geometry package with newlfm documents?

I am using the newlfm letter documentclass, and try loading the geometry package. This returns the following error: ! LaTeX Error: Command \geometry already defined. What I want to do is put more ...
5
votes
1answer
266 views

Auto Generate Table with Tons of + and -

i want to create a table containing lots of "+","-" and "0", which depend on the column and row number by (quite simple) mathematical formulas which are known to me. I could enter the signs by hand ...
6
votes
1answer
258 views

how to split a rectangle?

I hope somebody can help me. I am search for a split of a rectangle like this: \node[rectangle,draw,minimum width=3cm, minimum height=3cm] (rec) {}; \node[name=v1,minimum width=3cm * 0.16cm] at ...

15 30 50 per page