{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

6
votes
4answers
4k views

Side by Side matrices

How can I get matrices that are side by side? Currently I have the following: \[ \begin{pmatrix}[ccc|c] 1&2&0&0\\ -1&1&2&0\\ 1&0&1&5\\ 0&-2&1&4 ...
4
votes
0answers
33 views

How can I make biber output uniform field name lengths for all entries?

When I run biber, with options biber --tool --output_align --output_indent=2 --output_fieldcase=lower I get: @inproceedings{foo, author = {One, Some}, booktitle = {International Conference ...
2
votes
0answers
11 views

Numerals to ordinals in JabRef jstyle layout file

I have created a .jstyle layout file for JabRef (I am using JabRef version 2.11.1) for formatting citations for the journal, Florida Entomologist (FL_Ent). Although the current (25 March 2015) ...
1
vote
1answer
17 views

Intext citation in IEEE format

I am trying to cite my bibliography in IEEE format using the \cite command. However, the generated output appears like (1) rather than [1]. Here is a snippet of my file: \usepackage[]{natbib} ...
2
votes
1answer
47 views

How to wrap lines in a bulleted list correctly

I am new to all this. I am sure there is a solution.
2
votes
1answer
83 views

How to snap a float to grid

I have a two-column document with some column-spanning floats. The problem is that floats essentially reduce the page size when present, and the remaining page size does not necessarily correspond to ...
0
votes
0answers
17 views

new section text on same line [duplicate]

When writing an article, how can I keep the text on the same line as the subsection? e.g. suppose I say \subsection*{a)} blah blah blah How can I keep the subsection text of "a)" and the ...
0
votes
1answer
45 views

How to move the abstract to the left column?

My question is similar to this question, however, instead of a picture, I wish to move the abstract section to the left column, using same document class. Can anyone help with this? The document ...
0
votes
1answer
35 views

How to format complex section header

I've got several question, all relating to the below image. Within my .cls file I am trying to style the section headers like so: My first question was how do I stop \sections from being numbered. ...
0
votes
1answer
26 views

How to insert flexible float/text separation in two-column mode

To avoid ugly extra white space in the text, i want a flexible glue between the float and the text in two-column mode. In one-column mode, I can add extra glue using \textfloatsep, and I hoped I could ...
2
votes
0answers
36 views

Make output pdf consistently viewable on other systems [on hold]

I understand that there are pdf files that contain fonts, and pdf files that rely on the fonts that are already installed on the viewer system. If your pdf does not have embedded fonts, and the pdf ...
2
votes
0answers
25 views

How do I increase the white space between a section's title and the page header?

I would like something like this: I'm using {geometry} and {article} class, but I think I'm missing some definitions for the sections. I'm new at this and would like to write my masters thesis on ...
3
votes
2answers
53 views

How to change the label and deitalicize expex example?

I have the following code: \documentclass[11pt]{article} \usepackage{CJKutf8} \usepackage[T1]{fontenc} \newenvironment{korean}{% \CJKfamily{mj}}{} \usepackage{expex} \begin{document} ...
5
votes
1answer
35 views

Different subsection format if no title is given

I want to have subsections appear like "Article 1: Foo" when I enter \subsection{Foo}, but like "Article 1" (without the colon) when I enter \subsection{} (without a title). Is there a way to do this? ...
1
vote
3answers
32 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...
3
votes
2answers
56 views

italicize the subsubsection in latex

How do i italicize the \subsubsection{Subsubsection} 1. section 1.1 subsection 1.1.1 subsubsection I want the third line i.e. starting from 1.1.1 subsubsection italicize. Please help
3
votes
1answer
113 views

Making different styles in a latex document

In LaTeX there are such commands as \textit{}, \textbf{} to make a fragment of a text italic or bold. Can we make custom commands like this with different color, font, italic/bold/underline modifier? ...
0
votes
1answer
29 views

Section* in titlesec package

I cannot see section* in this source: \documentclass[oneside]{book} \usepackage[margin=1cm,top=1.5cm,right=1.5cm,bottom=2cm]{geometry} \usepackage[explicit]{titlesec} \usepackage{polyglossia} ...
27
votes
4answers
9k views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
2
votes
1answer
28 views

How to print out only statements (theorems, lemmata, etc) from a tex file?

Suppose that I have a long tex file with a lot of things. In order to read the logic structure only, I want to print only text inside \begin{theorem}..\end{theorem} and \begin{lemma}..\end{lemma}. ...
4
votes
1answer
55 views

Formatting a thesis report - footnote area fixed height

I'm trying to fix the maximum height of the footnote are in my document. Right now the formatting is such that almost every page with footnotes looks completely different. I know understand that ...
2
votes
1answer
38 views

Fixing a LaTeX thesis style issues with formatting section headings

I am fairly new to LaTeX, but I decided to take it upon myself to use the .sty file the computer science department at my school had for the university's thesis style. As it turns out, there are a ...
8
votes
6answers
243 views

command to display time (duration) in human readable form

I spent 3 hours trying to write a command to format a time (duration) expressed as a floating number (in seconds) in a nice form as follows: if the time is < 60 write as a float with 3 decimals ...
1
vote
1answer
29 views

How to put different parts of text to a other page

I would like to take out some part of my document and put them all together at the end of my document without doing it manually. Is there a command to do that? example : blabla bla// Exercice1// bla ...
1
vote
1answer
81 views

Format nightmare

I'm writing my thesis first time with LaTeX. I have several headaches with the formatting of the document: One 12pt looks on paper small than normal 12pt font size. Is that something that's known or ...
0
votes
1answer
32 views

Tab in latex for writing code [on hold]

How can I make a 'tab' in latex? I searched a lot, I found something useful but .. I must wrote code and I need a tab of different size. Can someone please help me with an answer?
1
vote
1answer
17 views

Custom title for each item using itemize package

I want to create a list in which each item has its own title. For instance, First item: This is the first item with a custom title Different title: the second item has a different ...
0
votes
0answers
32 views

How to use IEEEtran.cls with a brief contribution [closed]

I make a brief paper for IEEE Transactions using IEEEtran.cls with compsoc mode. What should be used instead of \documentclass[10pt,journal,compsoc]{IEEEtran}? If I write ...
3
votes
1answer
50 views

sum in the same line as a fraction

I'm sorry if this has been asked. I'm new to this and to Latex. I have this piece of code: \[ e^{-\xi_1 Y_1^N} = \exp\left(-\frac{\xi_1}{N}\ \sum_{n\geq1}{}V_n^1 e^{-s_n}\1_{\{ s_n \leq ...
2
votes
1answer
49 views

change formatting of the index

I am formatting a book which has a fairly extensive index and I am trying to figure out how to change the amount of indent that long lines wrap to. The author wants to cite entire book titles which ...
2
votes
0answers
43 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
11
votes
3answers
251 views

\left[ and \right] resizing differently for very similar formulae. Don't know how to fix it.

I have a \newcommand which inserts left and right square brackets around whatever you pass it. \documentclass{minimal} \newcommand{\foo}[1]{\left[#1\right]} \begin{document} Since $\foo{B} = ...
0
votes
1answer
29 views

Changing the page number/footnote number font?

I think I've been using this code: \renewcommand{\footnotesize}{\fontfamily{phv}\selectfont\scriptsize} It changes the font of the footnote but not the number of the footnote itself. Any way to ...
2
votes
0answers
13 views

Changed Font seems to have destroyed formatting Friggeri CV

I've been trying to use the Friggeri CV, and looked at all the bugs that people have had, so changed the font from Helvetica Neue to the the Roboto font, in the friggeri-cv.cls file. However, this ...
3
votes
1answer
78 views

LaTeX Equation left aligned with smaller fonts size

I have the sample below, When I compile and run, each step of the equation is left aligned with smaller fonts. What I'm trying to achieve is, each step of the equation should appear on a line by ...
2
votes
1answer
22 views

how to give horizontal offset to the section heading and align multiple tabs

I am a beginner in latex and trying to prepare my CV. the output of the following code \documentclass[11pt]{article} \usepackage{sectsty} \usepackage{amsmath} ...
1
vote
2answers
42 views

bullet list within texttt

I wish to insert a bullet list inside \texttt{} as part of the original reproduction. Is there a way to do this? When the list is copied directly from the original text, the rendering inside \texttt{} ...
1
vote
1answer
31 views

Wrap a verbatim table environmet

I have text with all sorts of characters in it that I want to use in a table so thought that verbatim might be suitable, but this doesn't seem to wrap. I've seen suggestions for listings but this ...
32
votes
6answers
1k views

Underline just words, not the space between them

I need to typeset a sentence such that just the words are underlined, and not the space between the words. Using the \underline will include the spaces between the words. I could do it with something ...
2
votes
1answer
132 views

Format the LaTeX code of an array

Is there any editor that can nicely format the LaTeX code for an array? By nicely format I mostly have in mind aligning the &, as in the examples below: Example 1: \begin{array}{lcl} z & = ...
0
votes
1answer
42 views

Semibold with lmodern? (Middle-bold)

I have my document ready to print, except the title. Regarding purely personal and aesthetic taste, I want it with serif with lmodern font, and a bit bold. However, for my taste, using \normalfont is ...
0
votes
0answers
29 views

How to remove square bracket in reference

I want my reference to be printed as 1. 2. and not as [1]. [2]. below is my code \documentclass{acm_proc_article-sp} \usepackage{amsmath , amssymb} \begin{document} ...
2
votes
1answer
40 views

Suggested objects permitting table-like-column formatting and page breaks amidst long lists of breakable content

My preferred way of structuring and formatting large lists of content is with longtable. Some of my cells contain a lot of text, both in paragraph and itemize or enumerate environments. For reasons ...
2
votes
2answers
47 views

Getting font size of section numbering to match font size of section title

I would like to change the size of the section labeling in my doc. While I can alter the font size of the title (setting it to \normalsize{}), the corresponding section number's size is not affected. ...
2
votes
1answer
109 views

Using parskip and geometry package correctly in my document

In another question asked here (Customizing chapter and section style (scrbook)), esdd gave me some recommendations for improving my code. I'm opening here a new question for not mixing things. The ...
1
vote
0answers
51 views

LaTeX to Word Conversion: “Normal” Style [closed]

I'm using LaTeX to produce a PDF that is then converted to MS Word using Adobe. The main text of the Word document is showing up as the "Body Text" style. I have a script that requires the text to ...
1
vote
1answer
21 views

How to change figure caption label

How can i change my figure caption from Fig. 1 to Figure 1 I am using IEEEtran template. My code looks like below \documentclass[journal]{IEEEtran} \usepackage{algorithmic} \usepackage{graphicx} ...
1
vote
0answers
86 views

Bibliography. Book edition not appearing correctly with babelbib

I am writting a document in Kile with TexLive using the babelbib package (with the spanish language) and it isn't displaying book editions correctly: if in the edition field I put on "2" I get as ...
2
votes
2answers
107 views

Automated Creation of Questions and Solutions for a Worksheet/Exam

Overview My title is the not the best, and I will edit it if there are any better suggestions! In a nutshell, what I am trying to achieve is to randomly change numbers in a maths question and have a ...
0
votes
0answers
13 views

All-or-nothing placing of macro-generated text [duplicate]

Given a macro % bold task titles \newcommand{\mypar}[1]{{\bf #1:}} %task decription template \newcommand{\task}[3]{ \mypar{#1} #2 \\ \emph{Solution:} #3\\ } I should like for the text ...