21
votes
2answers
4k views

How can I prevent LaTeX from breaking inline formulas globally?

I am using the acmsmall template and my inline formulas are being broken at equal signs and arrows; how can I prevent them from being typeset like that globally (i.e. without having to put tildes ...
2
votes
2answers
284 views

Count words difference between newest and old .tex file on SVN commit

I use latex for writing papers and I would like to bring more control over my progress - in other words - count lines and words. But I always forget to check how many words I have before I start ...
6
votes
2answers
1k views

\underbrace symbol is wrong

Hey guys, I tried to google the solution, but I didn't find any solution to this. I am using beamer,xelatex to prepare a slide. When I use \underbrace, the brace doesn't show, instead, a crappy symbol ...
2
votes
1answer
228 views

Text (preferably centered with the first line in bold) to the side of included graphics in LaTeX

I have a document with a main heading followed by a picture with some contact information to the right of it. After that the other subheadings continue. I want to do the same in LaTeX. Which I am ...
1
vote
1answer
318 views

How to delete space of empty “section number”

I have renewed the section number so that it doesn't display anything \renewcommand{\thesection}{} now the problem is that LaTeX is still reserving space for the section number although isn't ...
12
votes
5answers
5k views

Bitwise operator in pseudo-code

I am translating a C++ program into pseudo-code using the algorithmicx package. Do you know how I can represent the C bitwise operator like the shifts (<< and >>) ? Until now I used power of 2 ...
12
votes
2answers
1k views

Is there the easiest way to toggle (show/hide) navigational grids in TikZ?

In PSTricks, we can toggle the grids easily by showgrid=[false/true]. How to do it in TikZ? Doing as follows is tedious. \documentclass{minimal} \usepackage{tikz} \begin{document} \tikzpicture ...
3
votes
2answers
694 views

What is the TikZ equivalent for \psline[origin={1,2}](3;45) ?

\psline[origin={1,2}](3;45) draws a line 3 units long at an angle of 45 degrees starting from the point (1,2). What is the TikZ equivalent for \psline[origin={1,2}](3;45) ?
2
votes
1answer
450 views

Varying images at varying positions in Book and Memoir class chapter styles

I'm working on a chapter style: link (pdf) I want to use a different image at different positions in each chapter, sometimes even hanging into the title line (after the text), but the title line ...
22
votes
1answer
8k views

How to modify columns/column environments so they resize automatically to the largest column ?

This question was originally a duplicate of How can I add vertical space to a beamercolorbox to make it align with another one?. The response to that question was to add a vertical space according to ...
2
votes
3answers
500 views

Directory organization with multiple papers that share files

Being a PhD student, I have written/will write several papers. Most of them share a common bibliography file and some styles, so I created a directory tree like this: publications/ ...
0
votes
0answers
76 views

Proper style macros. [duplicate]

Possible Duplicate: How to write (La)TeX (with braces) [or any other TeX-related logo] I have one of the oddest questions. I know of the macros \LaTeX and \TeX that typesets LaTeX and TeX ...
17
votes
2answers
736 views

Handling different time zones

I'm looking for a way to handle date/times with different time zones. For example in svn-multi and filemod a date and time with a timezone is returned. I like to be able to compare times in different ...
7
votes
4answers
1k views

How to create pgfplots cycle list from a table?

I know that a pgfplots cycle list can be created with \pgfplotscreateplotcyclelist. However, the examples given in the pgfplots manual explicitly list all the items. I am wondering if it is possible ...
1
vote
1answer
364 views

removing the full stop after “excercise”

So I am doing a homework assignment. The homework is selected numbers from various pages of the textbook. So I can not use a ordered list, ie. 1, 2, 3, ... So I was looking at some ways to separate ...
17
votes
3answers
3k views

How to type NOT \delta and NOT \ll

In proximity theory, we use \delta and \ll as binary relations on the power set of a set X. How can one display NOT \delta or NOT \ll similar to how we can do \not\in. Using \not\delta and \not\ll ...
4
votes
1answer
482 views

Pgfplots jump mark error when plotting a floor function

For some weird reason the following code gives me the wrong plot \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot+[jump mark left,samples ...
5
votes
1answer
1k views

ntheorem and theoremname

I'm using ntheorem (mostly for thmmarks), and I'd like to change the font used for the theorem name. Specifically, I'd like \begin{theorem}[Name of theorem] to generate "Theorem 1 (Name of ...
1
vote
2answers
399 views

Upgrading PGF without tex-package manager

I don't use MiKTeX or any other package managers. I usually install new styles/libraries by adding the .sty file to the same directory as the .tex file and compile using pdflatex. I figured out I ...
8
votes
2answers
592 views

In memoir, can I number abstracts as sections in the toc?

I'm writing up my thesis right now, using memoir, and I have a problem with abstracts. Each chapter - besides the intro and conclusion - is an article published in a journal, and has its own abstract ...
2
votes
4answers
1k views

How to show ~(tilde) in footnote? [duplicate]

Possible Duplicate: Correctly typesetting a tilde I can show ~(tilde) in normal text, using text as follows, \begin{quote} \verb|~| \end{quote} But the problem is when I try to put this ...
1
vote
1answer
756 views

Comma between author and pagenumber

I need help with my term paper. When I quote with \cite[px]{author}, I want to remove the comma between the author and the pagenumber (px). I get this: (author, px) I need this: (author px) Thank ...
18
votes
5answers
2k views

How can I provide a verbatim (unescaped) commandline for executing with \write18?

When using \write18 to execute shell commands, there are some cases where lots of backslash strings, and other 'special' LaTeX characters are required in the commandline to be executed (e.g. if a ...
4
votes
1answer
1k views

Aligning function arguments in “algorithm” environment.

In the "algorithm" environment, when a function call spans multiple lines, I would like to have its arguments aligned, like so: MyFunction(long_arg_name0, long_arg_name1, ...
16
votes
1answer
2k views

How to use 1. (number followed by dot) format instead of [1] format in bibliography

The editor asked me to use the following format. Reference 1. Author, blah blah Instead of Reference [1] Author, blah blah ... Even though in the main text, [1] style has been used. ...
13
votes
1answer
1k views

Keep track of changes in LaTeX document

I see that in documentation for many LaTeX packages authors keep track of changes with a \changes{} macro, which then produces a nice index style list of changes. I would like to do the same for edits ...
1
vote
1answer
2k views

Subcaption: wrong subfigure labels

I am having a problem with \subcaption labeling subfigures (c) and (d) instead (a) and (b). I don't know where the problem originates from. I have many figures that contain two subfigures and most ...
3
votes
1answer
818 views

Create environment inside another environment?

Why can't I define an environment, that encloses another tabularx environment inside it? For example, why can't I do this: \newenvironment{customTabular}{ % This is the begin code ...
3
votes
1answer
6k views

Insert image in latex [duplicate]

Possible Duplicate: Force figure placement in text Hi! I'm trying to insert an image in latex with some text around: Here is our image: \begin{figure}[h!] \centering ...
4
votes
1answer
11k views

Insert image in LaTeX

I'm trying to insert an image in LaTeX with some text around: Here is our image: \begin{figure}[h!] \centering \includegraphics[width=0.5\textwidth]{idefA0.jpg} \caption{IDEF0} ...
8
votes
3answers
1k views

Red box drawn around question-mark operator in minted Erlang code

I'm trying to include some Erlang code samples in a document using the minted package which include the ? operator to denote a message being received from a process. The code \documentclass{minimal} ...
5
votes
2answers
476 views

flushright of theorem captions

Is it possible to flushright captions of theorem envrionments? For example consider the following code: \usepackage{amsmath} % \usepackage{amsfonts} % \usepackage{amsthm}% \theoremstyle{definition} % ...
4
votes
2answers
350 views

Position line in a resume

I am new to LaTeX, and I want to create a command that will display my previous positions formatted appropriately in a resume. The format I am looking for is this: 02.07.2009 - 02.07.2010 ...
18
votes
2answers
2k views

How do I get a list of all available fonts for luaotfload?

luaotfload uses an internal database that gets updated with mkluatexfontdb. So it knows about a lot of fonts installed on my computer. How can I query this database? Something like luatexfontdb ...
38
votes
2answers
1k views

Can I count the number of times each reference is cited?

I am writing a paper, and I would like to be able to find out automatically how many times each reference is cited. This could either be appended to the references in a printed version, or outputted ...
6
votes
1answer
4k views

How to cross-reference to sections in beamer

For my lecture slides in beamer I would like to establish a section-framenumber numbering scheme. For this purpose I reset frame counter in \AtBeginSection and redefine the \insertframenumber command ...
4
votes
1answer
1k views

recreating biblatex option autocite=footnote,style=verbose-trad1 in bibtex

I am currently generating my bibliography as follows: \usepackage[autocite=footnote,style=verbose-trad1]{biblatex} \let\cite\autocite This generates full citations in footnotes, with optional pre- ...
16
votes
1answer
1k views

Underline at the same level

I want to underline alpha's and beta's, but at the same level. I mean, I don't want but . Maybe there is already a command that make it but I couldn't find it. The second image was obtained with the ...
0
votes
0answers
157 views

\subsubsection <— How do I ensure that figures appear in the section they're associated with? [duplicate]

Possible Duplicate: How do I ensure that figures appear in the section they're associated with? How do I ensure that figures appear in the section they're associated with? thanks, ...
6
votes
1answer
2k views

Package pgf Warning: Your graphic driver pgfsys-xetex.def does not support patterns.

Package pgf Warning: Your graphic driver pgfsys-xetex.def does not support patterns. .tex: \documentclass[10pt]{article}‎ ‎%\usepackage{pgfplots}‎‎ \usepackage{‎tikz‎‎}‎‎ ...
15
votes
1answer
678 views

How do I create a macro which reads the content of a file when the macro is defined?

I am trying to do something like: \newcommand{\sometext}{\input{somefile.txt}} This works, but requires inputting the file every time the macro is used in the document. I would like to know a way ...
2
votes
2answers
2k views

Make more lines fit on the page in the scrreprt class

Good to see this: "Documents built on scrreprt are highly customizable" (Stefan Kottwitz in his answer How to customize the standard report template). My question: I want to make the top and bottom ...
29
votes
2answers
3k views

How to automatically add text immediately after \begin{document}

I attempted to redefine the document environment as follows, but get a complaint that: LaTeX Error: \begin{MYdocument} on input line 13 ended by \end{document}. \documentclass[12pt]{article} ...
2
votes
1answer
729 views

How to remove colon(:) on longtable suffix caption

Using svmono package and \renewcommand\tablename\{Tab.}. When I use table, the caption shows “Tab.1 Bah Bah”. But if I use longtable, the caption shows “Tab.2: Bah bah”. How to remove colon as “Tab ...
3
votes
4answers
807 views

Is there a package in either PSTricks or Tikz to draw the following diagram?

I took the following figure from JSON official site. Is there a package to do it easily? Anyway, what is the name of this diagram?
2
votes
2answers
874 views

pgfplots: setlength inside foreach

I have the following code, where the size of the cube marks is set to \x inside a foreach loop: \begin{tikzpicture} \begin{axis}[axis lines=none] \newlength{\mylen} \foreach \x in {1,2,...,10} ...
3
votes
1answer
172 views

How can I flush text left in the cases environment?

I have the following code: \documentclass{article} \usepackage{amsmath, amssymb, amsthm, graphicx, textcomp} \begin{document} d^2(A,B)=\begin{cases} (a_1-b_1)^2(1+m^2) &&\text{if $AB$ has ...
11
votes
1answer
18k views

How do I align text?

How do I do something like this in LaTeX? X: a, b, c, e, f, g
10
votes
3answers
2k views

Good (latex) package for typesetting bible quotations?

I'm in the market for a good package for typesetting quotations from the bible. Got any suggestions?
3
votes
1answer
2k views

Subfig, KOMA script, caption - how to suppress some list of figures entries?

I am using KOMA script and the subfig package like this \documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof]{scrbook} \usepackage[caption=false, font=footnotesize, ...

15 30 50 per page