{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

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
24 views

How to use IEEEtran.cls with a brief contribution

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 ...
7
votes
5answers
201 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 ...
3
votes
1answer
48 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
0answers
39 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 ...
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 ...
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} = ...
2
votes
0answers
12 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 ...
2
votes
1answer
21 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} ...
3
votes
1answer
75 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 ...
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 ...
1
vote
2answers
40 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{} ...
0
votes
1answer
41 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} ...
3
votes
2answers
39 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. ...
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} ...
0
votes
0answers
17 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 ...
1
vote
0answers
48 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 ...
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 ...
2
votes
2answers
167 views

Formatting text

I have a two part question: Is it possible using Latex to lay out text in the following format: Stage Directions Text A Character Name Some Dialogue ...
2
votes
1answer
108 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 ...
0
votes
1answer
39 views

Keeping things in place

Hi guys I have a very stupid question. I call it stupid because its probably something really easy to fix but since I am a noob I cant do it. I tried asking the question on a comment section of ...
2
votes
1answer
23 views

Different font for specific bibliography item

In my bibliography, I need to highlight some entries with a different font (for example bold, sans-serif, larger or colored). How can I do this?
2
votes
1answer
43 views

Adding Tables in LandScape Mode

First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few ...
1
vote
0answers
84 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 ...
4
votes
2answers
144 views

Double brackets around captions when of subfigures

I am using subfigure to arrange 3by2 subfigures with captions each of them. Normally, the captions should look like this: (a) , (b). But instead they look like this: ((a)) , ((b)). MWE: ...
1
vote
0answers
40 views

Resetting default formatting

So a previous file that I wrote included lots of formatting changes. With a different article I am writing all of the formatting (which is not desired), is now acting on my current document. Is there ...
4
votes
1answer
45 views

Getting correct sorting using shortauthor and shorthand in bibliography

I've been using the following answers in my document: How to print shortauthor in the references as well? biblatex: merge the list of shorthands into the bibliography Different font for specific ...
1
vote
0answers
32 views

Minipage vertical allignment

Hey guy I am fairly new to Latex and I have to get this work done. Earlier I asked some for help in formatting my header for my work. He did I am very thankful to him unfortunately he might be away ...
1
vote
0answers
14 views

Change the '.,' in to ',' between authors and eliminate the '.' between surname and first name, but leave spaces [duplicate]

minimal working example: \documentclass[12pt,openright]{book} \usepackage[backend = bibtex8, defernumbers = true, sorting=none, style = numeric]{biblatex} \usepackage{filecontents} ...
2
votes
2answers
153 views

Customizing chapter and section style (scrbook)

I have found a very cool custom style for chapter and section headings (It is from Customizing Chapter style in scrbook): \documentclass[ 11pt, pagesize=auto, version=last, chapterprefix=true ...
0
votes
0answers
19 views

Change page orientation and place an image filling the whole page [duplicate]

I would like to change the page orientation from vertical to horizontal just for one page and in this new page, place an image that will fill and fit to this page. ¿How would I go about doing this? ...
0
votes
1answer
76 views

Change the '.,' in to ',' between authors and eliminate the '.' between surname and first name [duplicate]

The traditional reference format can be set by the following command \documentclass[12pt,openright]{book} \usepackage[backend = bibtex8, defernumbers = true, sorting=none, style = numeric]{biblatex} ...
5
votes
1answer
43 views

Packages to print tabs on page border

What are the different packages available to print tabs on page borders like this ?
1
vote
2answers
19 views

Bibliography style paragraphs wrong behavior

My code is: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{fancyhdr} \usepackage{pgfplots} \usepackage[letterpaper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} ...
0
votes
0answers
19 views

Remove white spaces from latex [duplicate]

How can the white spaces from the output of the following line: $C++$ be omitted so that there is no white space between 'C' and '+' and the last '+'. The current output is: C + + C and the ...
2
votes
1answer
37 views

Math Environments / comment lines

I can not cope with such formatting (as pictured). I do not know how to divide the comment lines. Thank you for the tip. It would be wonderful if it was a solution that works for mathjax
3
votes
0answers
81 views

Readability of text-heavy latex file

My question is not concerned with the output, but the readability of the input. I am looking for advice for making text-heavy latex code more readable. I know there are already topics on making code ...
0
votes
0answers
29 views

Text formatting, how to generate everything not in plain text

I want to put some text in latex, which looks like { "wow": 15, "nice": 1 }, { "wow": 24, "nice": 1 }, But If i generate ...
3
votes
2answers
51 views

How can I force the argument of a summation to not be offset [duplicate]

Right now, my summation looks like this since I have a long bottom argument: $\sum\limits_{x \in A[1...i-1]} x$ How can I make it so that the x is not so offset by the bottom argument text?
1
vote
1answer
50 views

Table formating problem with siunitx, parenthesis, and scientific notation

I am having an interesting issue with spacing with siunitx, parenthesis, and exponents in a table I am using. Currently I am trying to make a regression table with standard errors reported below the ...
7
votes
2answers
90 views

How do I include the EBNF square brackets on a new line and set the font to typewriter throughout my grammar in the syntax package?

I want to add an EBNF grammar to my document and following the answers here and here, it seems that the most popular package for this is syntax. However, in the documentation it is not clear how to ...
1
vote
1answer
40 views

Format code listing package

I am documenting a script which has almost 43+ keywords. The output I want is something on the below lines... and the latex code I have is \documentclass[a4paper, onesided]{article} ...
1
vote
1answer
54 views

How do I type TeX without using the command? [duplicate]

How am I able to format TeX without using the command? I know I can use \TeX and it'll do it automatically but I'd like to do it manually for other stuff.
0
votes
1answer
15 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} ...
1
vote
0answers
37 views

Help identifying LaTeX code-style feature

The document below uses a feature I can't quite identify to display monospaced code-style font sections: Does anyone know how to achieve this effect?
0
votes
2answers
39 views

How to avoid a blank page when using \chapter*{}

So when using \chapter*{} this introduces a blank page before the next \chapter*{} I'm guessing it is because I am using a book format, tried putting it into a new group and clearing double page but ...
2
votes
2answers
100 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 ...
1
vote
1answer
27 views

Bold incorrectly applied to Table of Contents

I am using the report class in TeXworks/MiKTeX and was provided with a style that is a little out of date. I am having trouble with a bold section format being transferred from a page into my Table of ...
0
votes
1answer
35 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 ...