11
votes
2answers
1k views

Text mode commands/symbols in math mode

I am fairly new to LaTeX, and have run into a problem with commands apparently only available in text mode, where I would like to use them in math mode as well (e.g. integrated in equations). One of ...
-1
votes
1answer
213 views

How to cut a horizontal line by a perpendicular line?

I'd like to cut the line AC at the point p by a perpendicular line. \documentclass{article} \usepackage{xypic} \begin{document} \xymatrix{ & B\ar @{-}[d] &\\ A\ar @{-}[rr]_{P} & & C ...
5
votes
1answer
2k views

Add metadata in pdf as type pdf/a

I have created using pdfx a pdf using this command: \usepackage[a-1b]{pdfx} I would add metadata but I don't really understand how do it. I read the doc but I didn't understand pdfx guide
2
votes
1answer
197 views

retain space before \section heading in Memoir class at top of page

I am using xelatex and the Memoir class. By default, the empty vertical space before the section heading does not show after a pagebreak. How do I modify it if I want it to show instead, even if it ...
0
votes
0answers
49 views

How do I cite range of references? [duplicate]

I have to cite in LaTeX a range of sources (I'm using Miktex 2.9, TexnicCenter and Bibtex), all together. If I write ... in 1990 \cite{ref1,ref2,ref3,ref4,ref5} I would like to get "... in 1990 [...
1
vote
3answers
979 views

Add more space between cells in a table [duplicate]

I'd like to add more space between the cells of the table below. I've tried the command [2ex] after \\ but this changes the vertical alignment, which I'd like to be centered. \documentclass{article} \...
8
votes
2answers
101 views

Modifying an individual subsection number

I have an article divided into sections and subsections. I need to insert a subsection "5.2a" between "5.2" and "5.3". What is the easiest way to do this?
2
votes
1answer
205 views

How to vertically align the text in table cell?

I am trying to get a table cell with vertical text alignment. My current code is: \begin{tabularx}{\linewidth}{|X|} \hline \cellcolor{gray!20}Hardware\\ \hline \end{tabularx} Is there an easy ...
2
votes
1answer
781 views

How does one change the babel language with the ClassicThesis style?

It's all in the title. The issue is simple, I just wish to change the language so that I can type in french using babel. The original languages are ngerman and american. I just want to replace the ...
3
votes
1answer
182 views

Biblatex: No \postnotedelim for citations that aren't numerals

When I am citing pages in books, I use the citation format (Author 1982:45) But when I am citing something like paragraphs or online data with an ID number (i.e. things that aren't a plain ...
4
votes
2answers
563 views

Spaces inside Cyrillic listings

I want to include source file using listing package. In that file there are some cyrillic symbols in comments. I setup listings like: \lstset{extendedchars=\true,basicstyle=\ttfamily} And in ...
1
vote
1answer
822 views

harvard-thesis template and error using bm package

I have a following problem. I use harvard-thesis package to write my thesis and I have a problem, when I want to use a package bm. Here is a minimal example. Using this code: %!TEX TS-program = ...
4
votes
1answer
263 views

pgfplots jump mid mark with two ends

I'd like to make this plot in tikz-pgfplots. But I'm not sure how to get the jump mid marks with two ends. Any thoughts? Also are the coordinates correctly assigned in the proper format here as I'm ...
1
vote
1answer
117 views

Problem cross referencing when using include tcommand to include multiple files

I have been dealing with a Latex bug for the past 4 months that I have been unable to resolve. The issue is that a lot of my cross references come out as ?? when I use \include{filename} from a ...
5
votes
1answer
205 views

Character strings in biblatex's PART and VOLUME fields

When the PART and VOLUME fields in a bibliographic entry are numerals, biblatex puts out something very reasonable (see below). But when these fields are character strings, which they often are for ...
14
votes
2answers
4k views

`let` operation in tikz

Ηow can I separate options within brackets [...] so that is affected only the current command; For example, I want dashed lines only here (0,0) |- (A) [dashed] . Could someone give a detailed ...
4
votes
1answer
373 views

Relative positioning of Lewis electrons in chemfig

I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
5
votes
1answer
9k views

Elsarticle - number bibliography not working

I am trying to correctly format an article for Computers & Operations Research. They say I should use the "number" format to cite. I use elsarticle.cls and the documentation says that number ...
5
votes
1answer
595 views

How to install Gregorio package on Ubuntu with TeXLive installed?

Does anyone here have experience installing the gregorio packages to work in Ubuntu using the non-repo TeXLive? Gregorio isn't packaged on CTAN as far as I could tell, and I don't know enough to be ...
6
votes
1answer
757 views

list of todos (todonotes) is empty with llncs

I am using todonotes together with Springer's llncs and I noticed that the list of todos created with \listoftodos remains empty, regardless how often I run pdflatex. With other document classes its ...
2
votes
0answers
198 views

Error with \IEEEeqnarraymulticol [closed]

I am trying to format a long equation with an overly long LHS, namely: \hat{N}_{A1}(c_A + \hat{N}_{A1})^2 + \hat{N}_{A1}^2a_A(c_A + \hat{N}_{A1})^2 + \hat{N}_{A1}^2b_A(c_A + \hat{N}_{A1}) & = &...
7
votes
1answer
2k views

Drawing an arrow around an automata

Using Tikzpicture, I have the following automata: \documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{positioning,arrows,automata} \begin{center} \begin{tikzpicture}[>=...
1
vote
2answers
162 views

Because of long row, table not set in page cleanly

I create a table,but some rows are very long.Because of that table could't set on page...What is a solution for that?my code is, \begin{table}[!ht] \renewcommand{\arraystretch}{1.5} \caption[Set of ...
4
votes
2answers
707 views

protocol message diagram - arrow colored

\documentclass{article} \usepackage[margin=12mm]{geometry} \usepackage{hyperref} \usepackage[underline=true]{pgf-umlsd} \usetikzlibrary{calc} \begin{document} \begin{sequencediagram} \newinst{ue}{UE} ...
1
vote
1answer
129 views

Make a particular column of a longtable borderless

I am using longtable package to create tables as the number of rows are large and doesn't fit in a single page. This works fine for me. I now need a particular column not to have top and bottom border ...
10
votes
3answers
564 views

connect nodes that it looks like circle

I have 3 nodes placed on a circle. These nodes are differently shaped. I want to connect them and want the arrows to look like a circle, because it is a repeating process. I can connect them with ...
5
votes
1answer
116 views

Export page numbers of references

I would like to export the page numbers of all the inner references of my document. How can one achieve this? Equivalently, how can we export the section/chapter number of all the inner references? ...
4
votes
0answers
282 views

\ref, \autoref and hyperref expansion [duplicate]

I'm trying to write section numbers to a file with the newfile package. In details, this MWE basically tries to write to a .ref file with lines like A-B. The A and B are generated by \label and \ref ...
7
votes
1answer
882 views

Caption positioned at the side of the figure

I would like to have the caption of the Figure on the side of the figure. Plus I want to control caption width. Also, caption and Figure should be aligned all the way to the left and right of the page,...
2
votes
2answers
296 views

How can I float molecules in \chemfig around an element? (without the lines)

For example: I just want to show that the H2O molecules are attracted to the Carbon atom. I can't find a way to remove the lines connecting the Oxygens to the Carbons or how to extend the Hydrogens ...
1
vote
1answer
213 views

vbox overflow when using TitleGM causing a blank page to preceed the title page

I'm getting a blank page that precedes my title page, and I suspect that it is due to the vbox overflow warning that I'm getting. The problem is that I don't know how to properly adjust the vbox ...
1
vote
0answers
35 views

close appending to aliased newcommands [closed]

I have: \newcommand{\alias}[0]{POS} and use it as: ... \alias ... I want to sometimes pluralize it, output as: ...POSs... but this (obviously) doesn't work: ... \aliass ... nor does this: .....
4
votes
1answer
560 views

automatic PDF bookmark manipulation

This is a follow-up question to PDF bookmark customization How is it possible, to set in an report/scrreprt all chapters with bold bookmarks in the pdf bookmarks? I've found a discussion about it (in ...
2
votes
1answer
279 views

Ceiling function within verbatim in latex

I am preparing a latex document. Inside the body of a function I need to use the ceiling function. How will I use the ceiling function inside verbatim? \begin{verbatim} Method a(b) . . ...
4
votes
1answer
245 views

Two columns: one column for questions; the other for answers

I am using the exam class. \documentclass{12pt,a3paper,landscape}{exam} I would like to split my paper into two columns. One column should be for the question and across from that question would ...
8
votes
2answers
106 views

Parsing various types of page ranges with a single command

Having to treat a considerable amount of page ranges, I'd like to have a robust and simple command that would parse and print them correctly. The most simple case is e.g. 264,15-26 which means:...
1
vote
1answer
2k views

ShareLaTeX Bibliography in ApJ format

I am trying to use ShareLaTex to compile my bibliography in the Astrophysical Journal (ApJ) format. The document compiles in ApJ format just fine, but the bibliography is compiled in some generic ...
4
votes
1answer
128 views

Writing macros on file defined at compilation time

This is a follow-up to this question. I have a LaTeX3 code that reads a file formatted as follows: <numberA> "<nameA>" <numberB> "<nameB>" <numberC> "<nameC>" ....
1
vote
1answer
314 views

Compiling a Plain-TeX file that loads harvmac on TexWorks on windows

I had asked this question and it was suggested that I use plain TeX. On TeXworks among the compiling options there is no such thing. When I try running the file through pdfTeX I get the message, ...
6
votes
2answers
4k views

Logo in footer with aligned text

I want to create a latex class to create documents for my company. There is an example style for a word document but it looks more complex as most headers/footers I have found till now to re-create in ...
4
votes
3answers
1k views

centering a \hbox

I'm trying to center a collection of nested \hbox and \vbox without any succes :-( Here is the code I use: \begin{figure}[h] \center{ \vbox{\hbox{% \includegraphics{imageA}~% \...
4
votes
2answers
1k views

Extra alignment tab with longtable

I am using longtable and I am getting the error ! Extra alignment tab has been changed to \cr. I have attempted to fix it but nothing I have tried seems to be working. Below is the code for the table ...
4
votes
1answer
237 views

Add \par only if last paragraph did not end with displayed math

Background: I have named "sections" (sections for rest of this question) which are conditionally displayed or suppressed based on parameters. To simplify the test case below, these are controlled by ...
10
votes
1answer
373 views

unattractive additive effect to opacity with pstricks

I'm using pstricks to highlight by boxing or circling replacement text in my math equations. But, I don't want this highlighting to occlude what's behind it. So, I've been setting opacity or ...
2
votes
1answer
5k views

Fractions with `\dfrac` cause compile error

I'm new to LyX. I'm writing my next homework with it to give it a try. My example code is below: % Preview source code %% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/. %% ...
4
votes
1answer
427 views

LaTeX tikz-timing - adjust fontsize independently for each row label

I would like to be able to make the label below (which I have made red) have text size equivalent to \tiny but I can not figure out how to do it? I have not been able to find anyone else trying to ...
4
votes
1answer
348 views

\showbox and log file

I want to parse the output of the \showbox command externally. Is it possible to let \showbox write to another file than the .log file? If not, is it possible to temporarily change the name of the ....
7
votes
3answers
992 views

Gradient filling with PSTricks

Consider the following: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{figure} \centering \begin{pspicture}(2.4,0.6) \rput(1.2,0.25){Springboldene} % \psset{...
4
votes
1answer
390 views

Page numbering for chapters and special chapters

I am writing my thesis and I would like to have the page numbers on the top right corner of each page. And I would like to not have any page numbers on the first page of each chapter. But, I would ...
2
votes
0answers
662 views

alternating chapter and section on header [closed]

I use the code trying to have the header to display chapter and section alternately \pagestyle{fancy} \renewcommand{\chaptermark}[1]% {\markboth{\MakeUppercase{\thechapter.\ #1}}{}} \renewcommand{\...

15 30 50 per page