Linked Questions

115
votes
7answers
46k views

Useful shortcuts or key bindings or predefined commands for emacs+AUCTeX

One of the problems I've encountered with emacs in general, and with the defaults key bindings in particular, is the diversity. There are simply so many of them that sometimes, at the end of the day, ...
21
votes
5answers
4k views

Is it possible to have certain words in the document always in bold?

I am writing an AWK programming book and when I explain things, I refer to special AWK variables all the time, such as ORS. Is it possible to set LaTeX up in such a way that these words are always in ...
2
votes
2answers
7k views

Vertical space between tables vspace won't work

I have 2 tables, one above the other. At the moment I can't make any space between them in my report. The strange thing is I moved them in to a new blank document with all the same preamble and \...
4
votes
1answer
3k views

How to redefine \d within classicthesis?

For some unknown reason the following produces an error in classicthesis: % at the beginning of classicthesis-config.tex \renewcommand{\d}{\mathbf{d}} \begin{document} $\d$ \end{document} The error ...
2
votes
2answers
490 views

TikZ way to define several constants with just one macro

I'm using TikZ to plot several things (geometric surfaces, line plots, etc.) in just one environment. These plots depend on several constants that I define in the same tikzpicture environment. This is ...
6
votes
1answer
540 views

LaTeX newcommand with a variable number of arguments

I'm trying to create a new command in LaTeX that will let me do \begin{bmatrix}1\\2\\3\end{bmatrix} Like this: \m{1\\2\\3} I can make two functions, one for the begin and one for the end bmatrix, ...
4
votes
2answers
441 views

Keep position of coordinates with different axis-scale

How can I keep the position of a coordinate when I use it in another environment with a different axis-scale? In the example, I would like the \node [...] at (c); in the right picture to be in the ...
3
votes
2answers
206 views

understanding “ifthenelse” command with pgf random number

I can not understand why the following use of ifthenelse and pgf give me an error : \documentclass{article} \usepackage{pgf} \begin{document} \pgfmathrandominteger{\a}{2}{7} \pgfmathrandominteger{\b}...
1
vote
1answer
940 views

Add caption to pie-chart with tikz

I am having a problem to add a caption to a pie chart that I made with tikz. Do you know where is the error? \documentclass[margin=5pt]{article} \usepackage[svgnames]{xcolor} \usepackage{tikz,...
1
vote
2answers
181 views

How can I access a float defined via \pgfmathsetmacro from pythontex?

How can I access a float variable defined via \pgfmathsetmacro from pythontex? Something like: \documentclass{article} \usepackage[gobble=auto]{pythontex} \usepackage{tikz} \begin{document} \...
0
votes
2answers
176 views

How can I draw the attached picture in LaTeX?

How can I draw the attached picture in LaTeX?
1
vote
1answer
287 views

Fitting Plot onto TikZ Coordinate Plane

I am trying to create simple worksheets where students either: (a) see a randomly generated linear graph and must determine the equation or (b) are given a randomly generated linear equation and must ...
1
vote
1answer
146 views

Shortcut for Variable-Taking Command

I'm working with vectors, which I'm denoting with $\overrightarrow{a}$, where a is just the name of the vector, and thus is a variable that can take any value. I would like to redefine this as $\v{a}$,...
0
votes
0answers
44 views

Creating shortcode [duplicate]

I have a document in LaTeX in which I have to use a lot of code over and over again. Is it possible to define this code somewhere with a shortcut so that I can call it up by only using the shortcut in ...