19
votes
2answers
27k views

How do you write a vector with an underline instead of an arrow?

I don't like the way the vector with an arrow $\vec{x}$ looks. I would prefer to indicate it with a line underline but when I google it nothing comes up to show me how to do it. Does anyone know? ...
3
votes
0answers
698 views

Character combination and horizontal spacing [closed]

Thanks for this awesome website that helped me countless times! I need to use double square brackets. I know about those in the stmaryrd and MnSymbol packages, and I heard about unicode-math—but for ...
7
votes
1answer
244 views

Choice keys and exception handling

Recently, I switched a self-written "bundle package" from using xkeyval to keyreader. One reason for this, beside the backward compatibility, was that the definition of keys is more convenient in ...
3
votes
1answer
245 views

ConTeXt enumerate in margin

For short answer quiz, I like to provide an answerblank in right margin with same number as the question: In pdfLaTeX I do this with a newcommand: ...
11
votes
1answer
487 views

Text in an equation

This is best explained by example. Suppose I have the following: \[ \begin{align*} C_3 \rightarrow 6 automorphisms\\ C_4 \rightarrow 8 automorphisms\\ C_5 \rightarrow 10 automorphisms ...
16
votes
1answer
919 views

Displaying the range of sections on the page in the header

I would like to have on each page the range of sections covered by it displayed, opposite of the page number and accompanied by the name of the first new section (if there is a new one) starting on ...
2
votes
1answer
133 views

grouping data by columns

I have these three graphics all in one line. Now I would like to have 3 columns with their respective data aligned underneath them (the alignment underneath the graphics does not really matter). This ...
2
votes
1answer
1k views

Text that is centered horizontally but absolutely placed vertically

I want to be able to position a chunk of text (which could be anything, could have \includegraphics, and could be on multiple lines) at the center of a page horizontally. However, I want to be able to ...
2
votes
1answer
2k views

\cal messes up the math mode

How come when I use this code with beamer \begin{block}{Misadjustment} $$ \cal{M} = \frac{1-\lambda}{2}\sigma_v^2 M + \frac{1}{2(1-\lambda)}tr[\mathbf{RQ}] $$ \end{block} results in this: But ...
1
vote
1answer
827 views

How can I produce a document with Gujarati language in LaTeX? [closed]

I have tried the itrans package, but was unsuccessful to achieve producing document with indian language (especially gujarati). The documentation of itrans is not clear, at least to me. Can anyone ...
11
votes
1answer
438 views

Widehat with right arrow

I am searching for a wide hat with a right arrow. So far I've found only the regular wide hat (\widehat, shown at the left of the image), or a curved right arrow (\curvearrowright). Is there a way ...
4
votes
2answers
6k views

Displaying three graphics on one line

I am trying to display 3 graphics on one line (3 cycle graphs each with a caption underneath). How can I do this? Currently I have: \begin{figure}[h] \includegraphics[width =3cm]{c3.jpg} ...
14
votes
1answer
807 views

How to find out which glyphs are different in an OpenType style set?

With fontspec, and XeTeX or LuaTeX it's possible to access a font's OpenType features, including the Style Sets, e.g. like this: \addfontfeatures{RawFeature=+ss01;+ss18} TeX.sx has already taught ...
6
votes
4answers
2k views

How can I mix itemize and tabular environments?

I have the following list: \begin{itemize} \item És associativa:$\qquad(x+y)+z=x+(y+z)$ \item És commutativa:$\qquad x+y=y+x$ \item Té element neutre:$\qquad\exists 0\in\K : 0+x=x+0=x$ ...
1
vote
4answers
209 views

Reverse a glyph? [duplicate]

Possible Duplicate: Rotating a letter Given any printable glyph, is there some way to reverse it along the vertical (or any other) axis? So that, for instance, a sans-serif d would appear ...
2
votes
1answer
301 views

Add image and line break within a table

I want to create a rather mysterious table with both a line brake in a single row and an image. You understand that I cannot use a new row without \hline because I want to add an image at the same ...
1
vote
1answer
208 views

Error messages with diagonal arrows [closed]

When I copy and paste the corrected code for example in this question, I get the following error message: xymatrix 2x2 ! Missing number, treated as zero. to be read again \/ ...
5
votes
1answer
1k views

tool for checking my scientific writing for common style errors [closed]

I write frequently scientific reports such as technical reports, research papers, book chapters etc. I use LaTeX for writing these reports. My question is "Is there any tool with latex support, which ...
7
votes
1answer
906 views

Can Emacs org-mode be used to createToDo's linked to a line in a LaTeX source?

For some time now I'm tracking my tasks and ToDos (privately and for work) with Emacs org-mode( http://orgmode.org/ ) and I am very happy with it. There is a large project in my life (my Ph. D. ...
9
votes
4answers
1k views

Auctex: how to cause math mode dollars to be closed automatically with electric-pair

I use electric-pair mode to cause brackets to be automatically closed for me, so that when I enter (, { or [, the closing bracket is automatically also entered into the buffer and the cursor is placed ...
9
votes
1answer
665 views

Different margins for text and figures

Is it possible to have it so that the text has smaller left and right margins than figures? I am using memoir.
2
votes
1answer
240 views

How to put a reference into nlset command of algorithm2e package

I would like to provide an alternative version of only some part of already existing algorithm, using the algorithm2e package. My source looks like: \begin{algorithm}[t] \dots \; ...
9
votes
1answer
373 views

Is it possible to combine cases with pgfplots legend?

I would like to print a function and add a legend which makes use of cases. The current code is: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} ...
6
votes
1answer
488 views

Best way to use Linux Biolinum Keyboard with fontspec?

I am trying to typeset keyboard shortcuts in my document, e.g. CTRL+SHIFT+S. The Linux Libertine font family includes a nice keyboard font that I would like to use. What's the best way to use it with ...
2
votes
1answer
103 views

Why can't I set hyperref's pdfinfo from within a group? (Is it a bug?) [closed]

When I run the following code (using hyperref version 2012/09/27 v6.83g), I do not get any errors or warnings, but the metadata I set using pdfinfo doesn't appear. If I uncomment the \@firstofone ...
2
votes
1answer
407 views

how to escape special chars in \write18?

This is what I'm trying to do (it's just an example, not a real code): \immediate\write18{echo "price: $5.00" > temp.tex} \input{temp.tex} This is what I see in temp.tex: price: .00 What is a ...
7
votes
1answer
3k views

Problems installing MathTime Professional 2 font on TexLive

June 2014 update: on the basis of this page and the question here I have written an installer for the MathTime fonts that should work with Unix systems running TeX Live. The installer page is on my ...
4
votes
1answer
827 views

How can I force hyphenation in chapter titles?

I have a (German and English) document, which uses the scrbook class fromt he KOMA package, with long German words in the chapter titles. I would like Latex to hyphenate those words when necessary, ...
2
votes
2answers
2k views

Problem with textcomp package

When I put \usepackage{textcomp} in the preamble, nothing seems to be added to my MiKTeX package database. Upon using \textcopyleft to insert a glyph from that character set, an ugly bitmap version ...
2
votes
1answer
1k views

TikZ background not working

I am drawing a block diagram with TikZ. While everything is working like a charm, I cannot draw in the background. My code is \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
2k views

How do I put text over a squiggly arrow?

I am currently trying to write text over a squiggly arrow (\rightsquigarrow). For normal arrows, I use the extarrows package, which provides commands like \xlongrightarrow and \xLongrightarrow which ...
1
vote
1answer
287 views

AquilineTwo Font [closed]

This is how I would want AquilineTwo to look like when I type. But that is not the case when I downloaded AquilineTwo from anywhere. (specifically from UrbanFonts.com) Where can I download the ones ...
16
votes
2answers
16k views

Change Colour on Chapter/Section headings {Lyx}

I am using Lyx and Layout report for my thesis. I would like to change the colour of chapters sections and subsections (only the headings) from black to blue. I attach a screenshot in order to ...
5
votes
1answer
884 views

Trouble with nested tables

I am using nested table environments in the following snippet: \begin{document} \noindent \begin{tabularx}{\textwidth}{rX lX} COURSEWORK & Machine Learning, Probabilitistic Learning, ...
21
votes
1answer
698 views

Which programming language is used by TikZ/PGF?

I've been playing with TikZ for while, and now I want to dig a bit deeper and produce some reusable components for future references. There are certain syntax that are used in many examples on TikZ ...
13
votes
1answer
6k views

How to rotate a node and text independently in Tikz

How can I rotate the text inside a node independent of the node in tikz? Right now I am using the rotatebox. The other option I tried was to have two overlapping nodes. Is there a better way to do ...
7
votes
3answers
725 views

Is it possible to store an array generating by foreach?

For example, I want to get an array with values sin(1),sin(2),..,sin(100) and store it to an variable. Is there a way to get this result by using foreach ? EDIT: A more complicated example: Drawing ...
9
votes
3answers
461 views

Uppercase until end of group

In LaTeX, all font commands have two versions, one requires an argument (\textbf, \textit, \textsc etc), other changes the font until the end of group (\bfseries, \itshape, \scshape etc). The latter ...
16
votes
1answer
17k views

Proper page size for slides

I'm just going to use the standard article class to create my slides manually. The question is, what pagesize is appropriate, and why? Should I take into account my projector's resolution and/or the ...
3
votes
1answer
139 views

Concatenating/appending to macro in loop

I have looked through answers on this forum that did bring me closer to the solution of the problem stated above, but both the approach via \xdef and via \g@addto@macro give errors or wrong results. ...
7
votes
1answer
10k views

“! Misplaced \omit” error

The code below describes a table that goes like: |_|x x|x x| |x|x|x|x|x| |x|x|x|x|x| where |_| = empty cell, |x x| = multicolumn{2}, |x| = cell with text in it. \begin{tabular}{c|c|c|c|c|} ...
28
votes
2answers
5k views

Recreating a logo (text around a circle)

My objective is to figure out how to put text around the circumference of a circle as shown below. I have read Calligraphic logo in tikz which answer part of my question but not completely as ...
20
votes
1answer
848 views

How to print section titles like tab-list?

Can I create a user manual with sections at the right like multi-tab? Like this: -- I think maybe I can template the page by tikz. (That will be very flexible if possible) so I added the tikz tag. ...
5
votes
1answer
180 views

How to create multiple references to a single footnote in ConTeXt?

I have some footnotes in a ConTeXt document, which must be referenced too multiple times, i.e., the superscript mark 1 appears in several parts of the document, but the footnote is only displayed ...
9
votes
3answers
191 views

Trouble using \oldstylenums with decimal points and hyphens

I am using Computer Modern font (default) with \oldstylenums command to typeset numbers in oldstyle format. However I am having trouble using it with non-numeric characters such as decimal points and ...
0
votes
1answer
290 views

tables from excel to tex [duplicate]

Possible Duplicate: Comprehensive list of tools that simplify the generation of LaTeX tables I have some tables in excel. I use excel2latex to generate the LaTeX code to insert them into ...
2
votes
1answer
334 views

\addvspace after \section in memoir always adds all its space

Knowing about \addvspace I wrote my own environment that adds a minimum space before and after it. But using memoir, if a \section precedes it, \addvspace always adds all its space to the space that ...
3
votes
2answers
800 views

column separation lines now showing up in table

I have the following code that produces the table that is shown. What I am trying to do is to get the fourth and fifth column titles vertically aligned at the top. Is this possible? ...
2
votes
1answer
2k views

Remove bibliography entry from ToC or change the way it is displayed

I'm using the memoir class and have my document structured by parts which means that the "Bibliography" entry in the Table of Contents are not showing correctly (I guess that it is shown as a chapter ...
2
votes
1answer
182 views

Adjust \lxvchars etc. for \documentclass point size

Follow-up to query re: adjusting textheight in memoir Apparently, memoir's \setlxvchars[\normalfont]\setxlvchars[\normalfont] commands standardize the result to 10pt, regardless of the point size ...

15 30 50 per page