# All Questions

4 views

### Is there a LaTeX to HTML tool that supports the algorithm2e package?

I'm a LaTeX beginner and I'm writing computer science documents. I carefully choose my algorithmic package considering the features I needed and that led me to pick algorithm2e (vlined and noend ...
11 views

### Argument of \@sect has an extra }. \protect does not work

I have a problem using a command "\greek" in section. Here is an example of using the command \greek in normal text, which works fine. \documentclass[polutonikogreek, oneside,11pt]{CUEDthesisPSnPDF} ...
11 views

### \overset and superscripts

Consider this MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} &\overset{0}{\mathcal{D}^{\alpha\beta}}\\ &\overset{0}{\mathcal{D}}^{\alpha\beta} \end{align} ...
25 views

### Highlighting First Occurence of Word. Making it Case Insensitive

first time asking a question. I'm implementing egregs answer from this question: Highlight First Occurrence of a Particular Word %%% Code to set up special term treatment \makeatletter ...
32 views

### How to make fbox around minipage fit the whole minipage inside it?

I have long equation, Ax=b that I want to put a frame around. I can't use mdframed since I need to also compile this with tex4ht, which still does not support mdframed. So I use this trick setup: ...
25 views

### Endnote style within latex

I used EndNote to export references by using this Style Orient Pharm Exp Med.ens I have exported to make it lib.bib in order to use it in latex. in Latex, I use the following to define library: ...
15 views

### RefB & RefJ in Latex

I need to make references for my ref list, I am new at latex, I used the template for springer. they define their references as following by using {RefJ} and {RefB}, if I thinks they are just a names ...
29 views

### How to make header with picture and text?

I want to make a header which somehow looks like the picture below but I have no idea how to make it:
28 views

### convert this code to pseudo code in latex

Can some one please help to convert this code to pseudo code? I tried, but didn't work. if (element is HIT) { if (status is HIR) { if (is in LIRS STACK) { Delete from HIR Queue ...
30 views

### Why xelatex produces different files from the same deterministic sources?

Take the simple latex source file: \documentclass{article} \usepackage{lipsum} \usepackage{amsgen} \begin{document} \lipsum[1-10] \end{document} When processed with "latex" you always get the same ...
29 views

### How to link the contents page to the correct page numbers?

I'm writing a thesis using the report format. It contains several figures which don't seem to add to the `page' counter variable which results in a discrepancy between the displayed page number in the ...
23 views

### How to only compile the included tex file?

Suppose we are given a big main .tex file. I wish to use the command \include to import all the other .tex files into the mail .tex file. I heard that to save time, one can in fact only compile the ...
16 views

### How to append answer sheet to exam? (Exam document class)

I want to append an answer sheet to an exam. However, I only managed to do so manually, which causes conflicts if I reference things (with \cref for instance). Also, if have to re-adjust the points in ...
18 views

### How to include a box in the header? (Exam document class)

I have a box that I'd like to include in the header, instead of manually repeating it in every page. How can I achieve that? \documentclass[addpoints, 12pt]{exam} \usepackage{amsmath} ...
30 views

### Create shared row in table split into columns

How do I add a row across multiple columns such as the "maxpool" rows below?
19 views

### How to get subs/sups for figures but not letters?

I am playing with a font (found here) that has sups/subs defined for figures but not for letters. If I don't enable them, I don't get them: But if I \usepackage{realscripts} to enable them, I lose ...
19 views

### subsubsection not working in my thesis macro

I'm unable get the \subsubsection layer using my thesis scripts. It works fine up to subsection but not beyond that level. The counters have been set to a depth of 3 and so should be working for ...
26 views

### Vertically centering table cell texts

How do you make the content of this cell algin vertically centered? Here is the current output based on the code below. Thanks \documentclass[]{article} \usepackage[margin=0.5in]{geometry} ...
28 views

### Sudden random space after compiling

After compiling my document, I sometimes get spacing throughout my document, either between section and paragraph, or text/figure. This is inconsistent so I'm unable to pinpoint where it's going ...
10 views

### How do I get the font sizes I need when they are in between the defaults? SAE Class progress

I don't really know much about hacking together a class file, but as I have mentioned elsewhere on the forum, I am trying to do one for SAE. My current class file only supports a 10pt font size as the ...
5 views

### Centered section headers in Pandoc using markdown

I am trying to use centered section headers in pandoc using the following syntax: | ### Work Experience However, the atx headers are not parsed by the pandoc when executing: ...
31 views

### Designing a notation for the “even part” or “even floor” of a number

The largest even number less than or equal to either 6 or 7 is 6. Whether 6 should be called the “even part” of those numbers or the “even floor” of those numbers or something else was the topic of ...
21 views

Can someone help with workaroung about such issue? Windows 7, MiKTex 2.9 Code \addplot [only marks, mark=o] table[x index=0,y index=1,col sep=comma] {data.dat}; works just fine, but \addplot ...
27 views

### Macro expansion ordering in tables

I've a large table (about 300 entries). Sometimes, I've a sequence of entries with the same value (for a given column). In such a case, I need to omit the value. All my values are stored in variables ...
13 views

### Recurring decimal with letter (alignning at top)

A picture is more than 100 words. How do I align the dotts (automatically) and properly at the top? Code currently in use is from here: \documentclass[12pt]{article} %% packages ...
12 views

### Get author's name using initials instead of full first name in author block

I am using authblk to create an author block. However, I would like to use the authors' name in more than one location: In the authors block, show full first names and last name using \maketitle In ...
17 views

### Change margin points in leftmargin of exam class

How do I put the points on the leftmargin more to the left? Tried even changing some code in exam.cls but I failed. \documentclass[10pt,a4paper]{exam} \usepackage[latin1]{inputenc} \begin{document} ...
30 views

### Pgfplots and ClassicThesis: two plots side-by-side

I always loved the small text width imposed in ClassicThesis, but it is a problem when we have a lot of images/graphs. I would like to have two plots side-by-side in order to gain space (they are not ...
340 views

### Writing Google logo in latex

This is very hard to google itself. I have been told it is possible to use the google logo in regular text in LaTeX but I'm struggling to find out how. For example: "Some words, then {Google Logo ...
35 views

### Can't get color or textcolor to work

I'm new to latex. I'm using a template on overleaf.com. I'm trying to change the color of some of the text, but it remains grey. Here's a simplified sample of the tex file: ...
13 views

I try to write a book, and I'm beginner with some functions in LaTeX. I already have looked for this question even I looked in hyperref manual and I have not found anything about how to change the ...
22 views

### Externalizing tikz with precompiled preamble

This is a very special case, I guess, but it's what I need: %&Testing \documentclass{article} \endofdump \usepackage{pgfplots} \usetikzlibrary{external} \tikzexternalize \begin{document} ...
35 views

### How to add a symbol next to an enumerated item?

How could I add a symbol from bclogo next to an enumerated item like in the picture?
13 views

### TikZ (tikzexternalize) + subcaptionbox error

I use subcaption's command \subcaptionbox twice in a figure. In each subcaptionbox, I place a TikZ picture. This works fine as long as I don't change one of the pictures. As soon as I change it, I ...
15 views

### TeXstudio “creating a backup of the file failed”

I am using TeXstudio 2.10.8 to develop LaTeX files. It has not given me any problems so far but today, every time I save the file, I get the following message. Creating a backup of the file failed. ...
20 views

### Including png in several layer with ocgx for making a pdf

I try to make a pdf with pdflatex, which should contains several pngs images. The special thing is, that there should be for each png one layer (ocgx). At the end I want to have a pdf file, which all ...
55 views

### How to reduce the space enclosed in parentheses?

The following lines gives me more space below E^2 inside the parentheses. How to reduce this extra space. Also, the square (2) is above enclosing parentheses. \begin{equation*} ...
29 views

### Center content of frame in beamer class

Doesn't it bother anybody that the beamer class doesn't perfectly center the contents of frames vertically? There is a bit more space below than above. Could anybody provide a solution on how to ...
20 views

### How to get babel's language shorthands work inside biblatex entries with autolang=hyphen and langid fields?

I'm writing a German document, where I frequently cite works in English and other languages. Used to babel’s shorthands in ngerman for easily modifying hyphenation symbols in compound words or names ...
408 views

### How to print “Spring” if in month is in Jan-June? Otherwise “Fall”?

I teach classes and in my notes I have "Fall 2015" during fall semester and "Spring 2016" during Spring semester. I can use \the\year for the year. But is there something like \the\season for ...
25 views

### Where can I find this bibliography style?

F. Black and M. Scholes. "The Pricing of Options and Corporate Liabilities." Journal of Political Economy 81 (May-June 1973), 637-59. M. Brennan and E. Schwartz. "The Valuation of American Put ...
13 views

### Wide column text in two column latex document

I am new to latex and writing paper for a journal where the text is created in two column mode. For figures and tables, I can use the {figure*} and {table*} environment and this inserts the figures ...
48 views

### how many roots does the polynomial f(x)=x^4+3x^2+7 have [on hold]

According to the fundamental theorum of algebra, how many roots does the polynomial f(x)=x^4+3x^2+7 have, over the complex numbers, and counting roots with multiplicity greater than one as distinct ...
35 views

### Using fonts in modular documents

I have a document with a structure: +-- main.tex +-- style.sty +-- fonts | +-- times.tff +-- sections | +-- section1.tex | +-- section2.tex Main file main.tex includes section files via ...
23 views

### Undefined control sequence \@@col [on hold]

This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Debian) restricted \write18 enabled. entering extended mode (./cv.tex LaTeX2e <2011/06/27> Babel <3.9h> and hyphenation ...
27 views

### Basic Beamer Footer

I need to add a footer in my beamer consisting of: 1. My name (left side) 2. Title (middle) 3. Slide number (right side) Very basic, no sort of theme.
52 views

### LaTeX cuts my line in the middle. Why?

I am writing my CV in LaTeX and I dont know why but the following code cuts my first paragraph in the middle. It should be simple to know why but I have been looking for the last hours and I didn't ...
35 views

### Broken words and alingments in LaTeX

In LaTeX, how can I stop words be cut at the end of a continuing line? For example at the end of my line there is a word 'ultimately' that once broken changes to 'ulti' and 'mately' in the next line. ...