1
vote
2answers
92 views

My version of Red-Black Tree

Here's the code I have \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ treenode/.style = {align=center, inner sep=0pt, text centered, font=\sffamily}, ...
3
votes
0answers
18 views
+100

Emacs org-mode minted export with #+ATTR_LATEX

When I try to export a file like this: #+LaTeX_CLASS: tufte #+ATTR_LaTeX: :float t :options label={test} #+begin_src c #include <iostream> using namespace std; int main() { ...
1
vote
1answer
26 views

Left align or right align the header

If I want to L-Align the contact info in the (right) header block. How can one align the contents in a header ? Package: \ProvidesFile{jobapp} \special{papersize=8.5in,11in} ...
2
votes
1answer
39 views

How to put whole of a text on a single page?

I want to put whole of a text on a single page. I don't have constraint on the text font. So if the text was too long, the text font should be small. How can I do this automatically using LaTeX? For ...
5
votes
1answer
27 views

Why doesn't \makeatletter work inside \newcommand?

After hours of banging my brain against my skull, I narrowed down an issue I'm having to the fact that \makeatletter doesn't work inside \newcommand. Commands that I call after \makeatletter are ...
0
votes
1answer
33 views

Problem setting master file to current file with Emacs/AucTeX

I have a tex file containing these few lines at the end: %%% Local Variables: %%% mode: latex ...
2
votes
0answers
22 views

Create a blind footnote

How can I create a blind footnote such as the one in the picture below? By blind I mean that there is no number in the text, or in the footnote. I would like to have this footnote on the bottom of ...
3
votes
4answers
43 views

Inline boxes: alternative to pifont's non-filled-but-shadowed box?

I often need to draw inline boxes in specific rgb-colors. I really like how easy to use the pifont package is for this purpose. But just the filled boxes look as desired. The shadowish look of the ...
2
votes
2answers
65 views

Saving the state of the typesetting engine

When editing a long document, it is tiring to recompile all of it. Usually you do not want a print-ready output, only a locally meaningful output, that you correctly entered formulae, your sentences ...
2
votes
0answers
19 views

Bibliography: do not print fields title and author if they are repeated (or empty)

I have the following MWE with my custom bibliography, but I find myself with many talks with the same title (and author) that I want to group together... I guess I would need to use \iffieldundef ...
1
vote
0answers
15 views

Specific format for inserting a picture

I'm preparing a paper. Its Latex template is provided. I don't understand the following quote We suggest that you use a text box to insert a graphic (which is ideally a 300 dpi TIFF or EPS ...
1
vote
1answer
15 views

Set list of content and other lists single spaced

Like recommend in the KOMA-Script documentation on p 40, I want to set the spacing for all lists and my title page single spaced although I have onehalf spaced text. Now the second page of every list ...
4
votes
1answer
59 views

Prefixing part and chapter names in table of contents in LaTeX report

I have a LaTeX report as follows: \documentclass[oneside,11pt]{report} \usepackage{appendix} \usepackage{hyperref} \usepackage{bookmark} \begin{document} \begin{abstract} ... \end{abstract} ...
3
votes
4answers
533 views

auto-pst-pdf and TeXstudio under MacTeX

I use pdflatex to compile source files that contain EPS figures as well as PSTricks. My standard way of handling this is to use auto-pst-pdf. I have been using TeXstudio to compile files under Windows ...
3
votes
1answer
28 views

How to make a “meta” table of contents for a table of contents?

I'm creating a PDF which will mainly be used on mobile apps. I have a clickable table of contents via the following: \documentclass{report} \usepackage{hyperref} \hypersetup{ colorlinks, ...
3
votes
2answers
59 views

Blackboard bold letters

This is a very short question : how do I produce the blackboard bold letters in the second column (the one that reads "Text") of this document? It seems to me that the package eulervm uses the same ...
2
votes
1answer
22 views

aligning the equal signs without numbering each line in latex

Suppose I have something like, $\therefore$ we have the following: \begin{align} 2x + 7 &= 5x + 8 \\[0.1in] &= 2x - 7 \\[0.1in] &= 4 \\[0.1in] \end{align} I randomly made equations up ...
3
votes
2answers
16 views

colon after Appendix name

I am trying to solve a simple problem but have been unable to find a answer on this forum. My question is -- how can I put a colon after the appendix name? I feel that it should be pretty simple but ...
0
votes
0answers
20 views

Checking which Fonts are already installed

I downloaded a .tex file and after changing some Helvetica fonts to Times New Roman, I can finally see the pdf. Changing to Times New Roman was a wild guess that worked, but the result is not ...
2
votes
1answer
120 views

\begin{algorithm} unrecognized

I have used these two packages for creating algorithm \usepackage{algorithm2e} \usepackage{algorithmicx} But \begin{algorithm} shows as unrecognized command. Even \For, \While are shown as ...
3
votes
1answer
42 views

setting kerning for a glyph and a ligature

How can one specify in PL-file the kerning for a glyph and a ligature (say, digit and en-dash) except for setting it for the first part of the ligature (which I would like to avoid)?
5
votes
1answer
42 views

Tex Gyre showcase

I have a simple question: Is there an available document that would compare (showcase) all the fonts of the TeX Gyre collection? I supposed that something like this existed on the project homepage: ...
3
votes
1answer
53 views

How to get the missing Angstrom symbol displayed with siunitx?

I'm currently using XITS and XITS Math with Lualatex. Everything is fine. The only problem is that for some reason, \SI{0}{\cubic\angstrom} is not working as expected: \documentclass{standalone} ...
0
votes
0answers
15 views

\thispagestyle{empty} on last page doesn´t work

I need a site without page style at the end of a document. But the command doesn´t work. How can I solve this? \documentclass[BCOR=10mm,DIV=11] {scrreprt} \usepackage{setspace} ...
0
votes
0answers
6 views

Multirow not working with long tabu

so im having trouble getting the multirow working with longtabu. The problem is the Time column is not vertically centering as i would expect using a multirow. also i would like to use a multirow on ...
57
votes
15answers
15k views

Prevent pdflatex from writing a bunch of files

If I create just a basic hello.tex file an compile it using pdflatex hello.tex The pdflatex program is creating a plethora of file which is a little annoying. Currently it writes all those files ...
2
votes
0answers
20 views

Citing a cited reference

How would I go about doing this in BibTeX - http://www.reading.ac.uk/library/finding-info/guides/lib-citing-cited-ref.aspx Any ideas?
3
votes
1answer
111 views

How to fix this interaction bug between pgfplots and babel-french module?

Here is an example of a minimum non-working case which is generating the bug: \documentclass{standalone} \usepackage{luatextra} \usepackage[frenchb]{babel} \usepackage{pgfplots} \begin{document} ...
9
votes
4answers
902 views

emacs auctex: how to get \frac{}{} and \bm{}?

How can I find out (in AUCTeX) if \frac{}{} and \bm{} have predefined keyboard shortcuts? I couldn't find these two.
0
votes
0answers
8 views

Limit on the number of images that can be inserted into on LaTex chapter or appendix

Using Latex, I have been unable to insert more than 18 images into a single chapter or appendix. LaTex does not give errors relating to this, it simply just does not place more than 18 images into ...
2
votes
0answers
33 views

List of figures that have a certain “property” I set

Note: This question differs from other similar custom-list questions because each of my environments-of-interest can have multiple keywords, and I only want to generate a list pertaining to one ...
2
votes
1answer
42 views

Asymptote SVG export as vectors, instead of rendered. How?

TL;DR : my question is in bold below. Preamble: I'm pretty new to Latex. Been fiddling around with both MikTex and TexLive for a few days. Have got a working setup on Windows (with ghostscript, Image ...
5
votes
1answer
38 views

Counters incremented too many times in a beamer presentation with overlays

It seems that a frame with overlays in Beamer needs to be processed multiple times. The problem is that a counter that should only be incremented once is incremented more than expected. How to avoid ...
0
votes
0answers
14 views

Add tree command output into LyX document

I need to add the following listing into LyX, but instead of having the following result, I obtain the one at bottom of this page. What can I do? How it should be: $ tree . ├── ...
2
votes
1answer
44 views

Custom title and author position

I'm trying to reproduce http://faculty.kfupm.edu.sa/ME/mqahtani/Publications/21rib.J.Turbo.pdf. I was able to get something similar, but I couldn't use \maketitle, so I had to manually input the title ...
5
votes
1answer
172 views

Turn off bold font in heading for a single symbol

The headings commands (\section, \subsection, etc.) put their text argument in a bold font. I don't want to change that. But I sometimes need to put specific symbols (e.g. phonetic symbols) inside a ...
0
votes
2answers
51 views

Help regarding heading and page numbers

I want to place the heading in the middle and the page number below in Latex. Please suggest how to do it. I am using the following coding. \chapter{$\Lambda$-Modules}\ref{ch:prili} ...
12
votes
1answer
49 views

What is the most appropriate way to configure biblatex for use with an unsupported language?

From time to time, I need to typeset Welsh. Sometimes, I need to typeset citations and bibliographies in Welsh. I think that last time I did this, I may still have been using BibTeX although I am ...
0
votes
0answers
18 views

Adding the Table of Contents to the index in the PDF viewer

When I generate a PDF (with the hyperref package loaded), it generates the a navigable index in the PDF viewer (usually in the left part of the canvas). Everything works alright! but I'd like a link ...
0
votes
0answers
18 views

How to set up automatic build in Emacs

I've done this with Texclipse in Eclipse using a script that is called after every edit or refresh. I wonder if this is possible in Emacs? For Emacs, I manually compile by calling M-x tex-compile ...
3
votes
2answers
59 views

Proper format for this equation

I have this equation that is slightly too long and want to split it somehow nicely, unfortunately I am incapable of doing this right. Could anybody help me with this? \begin{align} ...
1
vote
1answer
134 views

Bad vertical distance in table using makecell package \multirowhead

This is my working code: \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{array} \usepackage{caption} \usepackage{tabu} ...
2
votes
0answers
14 views

Compiling error when adding BibTeX entries [on hold]

I recently made a .bib file with 5 entries and it worked perfectly. However, when I added 5 more entries today, it gave the following error: Paragraph ended before \OT1\. was complete When I remove ...
4
votes
4answers
479 views

Using TikZ to draw a water channel profile

I want to draw a relatively simple sketch using TikZ but I can't do it. What I want is a representation of an open water channel with 4 pools, a dam upstream, and a waste reservoir downstream, as ...
0
votes
2answers
59 views

Convert Tex File into an image [duplicate]

I would like to know what do I have to do if I want to convert the my Tex document into an image. I'm new to Latex World, sorry if it is a dumb question for somebody
9
votes
1answer
109 views

Macro parameter delimited by more than one delimiter

TeX user can simply create the macro with a parameter delimited by an arbitrary sequence of tokens. For example \def\macro #1delimiter{...#1...} Is it possible to create a macro with a parameter ...
2
votes
2answers
43 views

How can I rotate a 'sidewaysfigure'?

I would like to rotate mysidewaysfigure to face towards the left rather than the right (i.e. from 90 degreed to 270 degrees). Does anyone know how I can do this using the sidewaysfigure environment? ...
2
votes
1answer
23 views

How do I reset the footnote cross-referencing counter for each chapter?

I am writing my thesis in the document class scrbook, and have the footnotes counter set to start again from 1 in each chapter. However when I reference a source more than once within a chapter, it ...
1
vote
0answers
6 views

manyfoot, bidi packages and footnotes on the same line

Writing a book of probability in arabic, which is a Right-to-Left language, I need to write Left-to-Right footnotes for footnotes with english words. I do this (for main language arabic and other ...
3
votes
4answers
187 views

How can I make a long and wide table fit the text width?

My table is too wide and too long to fit in one page. I want to separate it in 2 pages. I used longtable package to separate it in two pages but I can't fix the width. Here is my table code, (it look ...

15 30 50 per page