2
votes
1answer
737 views

How to manage a document with a huge number of PSTricks figures?

I am writing a mathematics book that makes use of a huge number of PSTricks pictures. For the sake of re-usability and maintaining separation of concern, I always put the self-contained PSTricks code ...
10
votes
2answers
471 views

How do I contribute to TikZ?

Stemming from this question and with due credits to @morbusg's answer, I was able to create a very fundamental symbol for the circuits.ee.IEC TikZ library, the AC voltage source. I call it the ac ...
26
votes
1answer
11k views

No room for a new \dimen when including TikZ [duplicate]

Possible Duplicate: No room for a new \dimen I have a fairly large document which uses 30 or so packages. I was going to add some TikZ graphics, so I added the following to my header file: ...
5
votes
4answers
1k views

Which combination of font-size, font-family, font-color, background-color, line-width, spacing make the most comfortable to read?

I am searching for a good combination of font-size, font-family, font-color, background-color, line-width, line-spacing, paragraph-spacing, indentation, tabulation, heading, etc. Which combination ...
0
votes
1answer
906 views

How to produce EPS instead of PS using latex.exe followed by dvips?

How to produce EPS instead of PS using latex.exe followed by dvips?
7
votes
1answer
363 views

Can I convert a 16 page pdf into an 8x2 matrix in LaTeX?

My graphing program (R) can plot a set of figures out, each on a separate page of the same pdf. Is there a way to convert this into a single 4x4 or 8x2 figure in LaTeX? There are alternatives, but ...
3
votes
2answers
3k views

How to Just show \subsubsection numbers

\documentclass{article} \begin{document} \section*{Section1} \subsection*{subsection1} \subsubsection{Another layer of subsection} \end{document} I just want to show the subsubsection ...
6
votes
2answers
369 views

Processing the body of an environment multiple times

Dear all, I am new to package writing (LaTeX2e) and to this forum, and I probably read to much of the TeXBook and not enough on LaTeX. My package works, except that verbatim is verboten. Given a user ...
4
votes
1answer
733 views

How can I restrict `pgfplots` plot to an interval manually?

OK, I've plotted these graphs but am unable to stretch the second one, so that they both have the same values on the vertical lines drawn from one to another. I've tried to set domain=0:2200 for both ...
2
votes
1answer
2k views

What's the elegant way to spread subfigures on the multiple pages?

Having 3 figures that thematically should stay together in one figure environment as subfigures (I'm using subfig currently), I know that there's no way to allow those pictures to separate over few ...
8
votes
1answer
14k views

Is there a bibstyle for the Nature journal?

I'm writing a manuscript to submit to this journal, and I'm using bibtex. Problem is: I can't find any bibliography style files that comply to the demands of the journal. Does anyone know if there's a ...
13
votes
1answer
5k views

How do you say Happy New Year with LaTeX?

Title says it all. How do you wish "Happy New Year" to a TeXie? Compile the code below with pdfLaTeX, view it with "PDF Reader" or "Adobe Acrobat Pro" and press the "Happy New Year" button on the ...
3
votes
4answers
962 views

How to create hanging bullet?

How can I create 'hanging bullet' (bullet in margin) followed with text. I would like to put it in \newcommand but I'm not managing to do it. I tried this: ...
2
votes
2answers
185 views
9
votes
1answer
3k views

Triangle node with adjustable height

I'm trying to draw AVL trees with TikZ, what I need is: Binary tree with simple circle nodes, and adjustable height triangle (or rectangle) nodes for subtrees, both containing only single ...
2
votes
1answer
266 views

Is there a simpler way to obtain the reference points enclosed by \rput frame?

Is there a simpler way to obtain the reference nodes shown as dots below? \documentclass[dvips,dvipsnames,rgb]{article} \usepackage{pstricks,pst-node,graphicx} ...
1
vote
1answer
213 views

How to find the intersection point between the invisible frame of `\rput` and the line segment of `\ncline`?

Points enclosed by black ovals are the intersection points between the frame boundary of \rput and the line segment of \ncline. How to find these points? The screenshot above is copied from ...
11
votes
1answer
2k views

footnote in Math Environment

\documentclass[12pt]{article} \usepackage{amstext, amsmath} \usepackage{chemarrow} \begin{document} \let\rightarrow\chemarrow Begin $\xrightarrow[\text{Text below the arrow}\footnote{this is ...
10
votes
3answers
3k views

TOC Text - numbers alignment

I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing. Thanks for your ...
4
votes
4answers
616 views

Add a “on behalf of …” line to the author field in an article

I'm writing a conference proceeding using the standard article class. To typeset authors and their affiliation I'm using the authblk package, and I'm really satisfied with it. However, the people ...
3
votes
1answer
644 views

Hyperref and Sideways Figures

I was wondering if anyone could help me. I don't know much about LaTeX, but I'm trying to reference sideways figures in my text. When I click on the links in the pdf they take me to completely ...
6
votes
2answers
3k views

Paragraph in TikZ

How make paragraph in TikZ. I use \parbox with \node \node {\parbox[5cm]{text}}; but i need more options, alignment center or left or right, similar to text box. All in TikZ. thanks.
7
votes
6answers
6k views

Aligning paragraph inside a tabular

Consider the following code: \documentclass{article} \begin{document} \begin{tabular}{|p{5cm}|} \hline \textbf{item 1:} These are some texts to just fill in the first line. \tabularnewline ...
18
votes
3answers
3k views

When should we use a blank line?

I only know that we have to make at least one blank line between two adjacent paragraphs. My question is: What is the proper way to make use of a blank line ? For example: Is it recommended to ...
6
votes
1answer
848 views

Getting layout parameters from the geometry package

The geometry package provides a simple way to set layout parameters. For example, \usepackage[margin=1in]{geometry} will give me a document with 1 inch margins on each side. In particular, it ...
1
vote
1answer
681 views

Using contcapt in the sidewaysfigure environment

In a two sidewaysfigure environments across two pages contcapt in the second page has an incremented caption number. Oddly, the subfigure letter on the second page is correct ex. (it will start with ...
1
vote
2answers
332 views

How to make contextual framed letters get proportional size automatically?

I am creating a question sheet using a method (I don't know the exact name, maybe bubble sheet format) as follows: My question is how to improve the appearance such that the framed letters get ...
3
votes
1answer
2k views

Scale sideways subfigure to fit to page

I have a document with subfigures that are printed sideways with rotating. I need to scale that figure (with subfigures) to fit to page. %% LyX 1.6.7 created this file. For more info, see ...
4
votes
2answers
2k views

A better way to achieve sans-serif typeface in figure and table environments

For some of my style files, I would like to have a sans-serif typeface within my figures. I have code which seems to be working, \makeatletter \renewenvironment{figure}[1][\fps@figure]{ ...
16
votes
4answers
7k views

Nested TikZ nodes

This isn’t the first time this question was asked but the other solutions don’t work in my case. Consider the following image: It was created using this code: \begin{tikzpicture}[ node ...
5
votes
2answers
1k views

How to use pgf-math inside an argument?

I response to xport's recent questions, I tried to do the following \usepackage{pgf} [...] \rule{\pgfmathdivide{4}{3}\pgfmathresult mm}{5mm} Unfortunately, this fails with the following error ...
7
votes
2answers
1k views

multline inside gather?

I have 3 related equations, two of them do not fit on a single line. I want to present them in a gather-environment, but how to do linebreaks inside equations? multline does not work inside gather. ...
2
votes
1answer
473 views

How to pass in a ratio in fraction form (as opposed to decimal form) to table column definition?

My scenario is to pass in a ratio (in fractional form as opposed to decimal form) to each table column definition. The following code cannot be compiled. \documentclass{article} \usepackage{pgf} ...
10
votes
2answers
2k views

How to get multi-line chapter name with ClassicThesis package?

I'm using the ClassicThesis by Miede for writing my thesis, the support package is Arsclassica. It's a nice template, however I got a little problem with the Chapter name, some of them can be very ...
3
votes
2answers
712 views

Is there an \arrayrulecolor-like command to change the rule color of \fbox?

The question has been written above.
9
votes
4answers
6k views

Defining shortcuts

I am using $\longrightarrow{}$ at many places in my document. I should say around two to three times per page. I was wondering if there is a way to assign a shortcut (i.e. lra) and wherever I use lra ...
2
votes
1answer
724 views

Tabular or two column mode

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \usepackage{multicol} \begin{document} ![alt text][1]\begin{table}[ht] \begin{tabular}{l l|l l} \underline{\textcolor{blue}{Text ...
9
votes
1answer
1k views

Code highlighting in ConTeXt

What is the best way to highlight code when using ConTeXt? I am aware of support for specific languages, as described on the ConTeXt wiki, but it seems rather limited at present. I know that we could ...
10
votes
2answers
3k views

What is the difference between \fboxsep=1cm and \setlength{\fboxsep}{1cm}?

Question has been written above.
1
vote
4answers
914 views

Unequally spaced columns in XYpic

I often need to create a diagram in XYpic where the distance between the columns varies. This is usually when one has a map to some object X where the definition of X is in the diagram itself, like ...
2
votes
3answers
1k views

How to pass in a ratio in fractional form?

How to pass in a ratio of 4/15 (instead of its approximated decimal form of 0.266) to table definition. Final solution can be seen here. I need one more vote to close this topic.
5
votes
2answers
9k views

LaTeX error: can't write file

I'm using Miktex 2.9 on windows 7 x32, texniccenter as IDE. I encounter an error for a project that worked few days ago: when I compile, I get the message: ! I can't write on file `../preamble1.aux'. ...
19
votes
1answer
1k views

Repository of TikZ shapes

TikZ shapes are extremely hard to create – even the documentation admits as much. On the other hand, the selection of shapes that ships with the tikz package is pretty meagre – besides rectangles, ...
6
votes
1answer
4k views

How can I draw two loops above a node?

How can I draw two loops above a node? Here is my code: \path (r) edge[loop above] node[left=1pt] {3} (r); \path (r) edge[out=140, in=50, looseness=0.8, loop] node[above=3pt] {4} (r); How can I ...
48
votes
7answers
10k views

File extensions of LaTeX-related files

In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically ...
3
votes
2answers
480 views

Can this command be converted to environment?

I have a command as follows: \newcommand{\Comment}[1]{&&&#1\tabularnewline\hline} And now I want to convert it to be an environment as follows: \newsavebox{\tempDescription} ...
5
votes
1answer
2k views

How to redefine the color of table rules without interfering the content of its cell?

I attempted to change the rule color of my table to red. Unfortunately, the content in the table cell also got interfered as shown in the following figure. The margin frame rules also became red which ...
1
vote
1answer
305 views

Change size of whole set of elements

I am trying to include some gnuplot-generated figures using the epslatex terminal, which creates an .eps file and a .tex file. The way to include these figures in the document is writing ...
0
votes
1answer
178 views

Why did my exact calculation still produce small gaps on the most left and right table rules?

I have specified each tabular cell width exactly using formula ##1\linewidth-2\tabcolsep-1.5\arrayrulewidth as shown in the following code snippet: \documentclass[dvips,dvipsnames,rgb]{book} ...
7
votes
2answers
6k views

I don't use \centering, but why must I use \arraybackslash in my table?

I don't use \centering or \Centering in my table below. But I will get errors if I don't insert \arraybackslash. Question: What is \arraybackslash for? It seems so mysterious for me. Why must I ...

15 30 50 per page