{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

0
votes
0answers
11 views

Writing formula in LaTeX

How can I write the formula shown below? I am new to LaTeX and I found how to write upper bounds but it is getting really complicated writing it as a whole.
0
votes
1answer
23 views

I have a problem in the output PDF margins

I have a problem in latex template of Circuits, Systems, and Signal Processing journal the output file has not equal margins from left and right, and has a large margin from bottom of the page. I ...
3
votes
4answers
49 views

How to draw straight lines to indicate repeat values in merged table cells?

Can you help me the following working: I'm looking to indicate that the value 2.00 is repetitive vertically through a straight line like in this sketch (the result should be a solid, continuous line, ...
0
votes
1answer
58 views

Using Easylist and leaving one entry bullet blank

So I have a checklist using the checkboxes. I want to make occasional ones not have the check box because there are several indented checkboxes I want to choose from. I see Choosing the bullet of a ...
3
votes
1answer
35 views

section head two environment with different size boxes

I have two arguments in section and how to print the second optional argument in the same boxes. How do increase the box width should be upto paperwidth. My MWE is: \documentclass{book} ...
4
votes
1answer
15 views

How to change the format of the “and” bibstring using xpatch?

When using biblatex's textcite command with a two-authored reference I want the "and" between them to be in italics. I managed to get the same for the "et al." \bibstring using the following code ...
1
vote
0answers
32 views

Group functions or something like that

So basically I am writing a thesis in Latex. I want to declare a group of functions exclusive for A3 pages. Can you guys give a tip how to declare such group? class? object? or whatever its called ? ...
0
votes
0answers
30 views

Equivalence Conditions in a Theorem

If I want to write a math paper with a theorem of the form If A and B are real numbers, then the following conditions are equivalent: 1. A = -B; 2. -A = B; 3. A + B = 0. Furthermore, the ...
0
votes
1answer
25 views

list all 3 to 5 author names in the first in-text citation using apacite

I use \usepackage{apacite} in the preamble (sublime 2 editor) and \bibliographystyle{apacite}. I did not have to manually install the apacite package. For in-text citations of 3 to 5 authors, I need ...
1
vote
0answers
15 views

Generating an IEEE bibliography with book series in parentheses using BibTeX and IEEEtran

The IEEE citation reference and style manual both list the following two bibliography examples for books: [4] M. Abramowitz and I. A. Stegun, Eds., Handbook of Mathematical Functions (Applied ...
1
vote
1answer
26 views

section head box different font-size and two arguments in a level section

I'm expecting the below section heading is different box and section number is different box. After A level section default 4 icons need to print below (please refer screenshot). My MWE is: ...
1
vote
1answer
79 views

print the chapter number as name in class file latex

I am using a Duke University LaTeX template for master thesis, the template print chapter headers as follows: Chapter 1 chapter name but I want to print it as follows Chapter one: ...
1
vote
0answers
25 views

Problem with answers using hyperlinks and tbox

I have minor problems with the solutions shown in Hyperlink with answers package I wanted to make a macro which takes solution and exercise as arguments, uses a button like mutual reference, and ...
0
votes
2answers
38 views

I want to get two side by side horizontal lines as shown in the figure

\documentclass[12pt, a4paper]{article} \usepackage{booktabs} \begin{document} I want them on the same row, side by side. \vspace{0.5cm} \begin{tabular}[t]{@{}p{0.45\textwidth}@{}} \toprule ...
1
vote
1answer
48 views

Flowchart Formatting - corrections

I am trying to come up with a flow chart as shown below: I tried as follows: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes.geometric} ...
1
vote
2answers
75 views

Formatting Question

It has been sometime since I have used LaTeX, and I have a formatting question. Well, it would be better if I just show my code and ask why the format is messing up when I call in cases! What can I do ...
2
votes
1answer
85 views

Broken automatic line breaking in section titles when ulem and hyperref are used

I am trying to use the ulem package to underline section titles while still being able to have automatic line breaking: \documentclass{scrartcl} \usepackage[normalem]{ulem} \begin{document} ...
3
votes
2answers
29 views

how to raise superscript inside overline?

I want to N squared inside overline. The superscript in $\overline{N^2}$ is too low. How to raise superscript higher? Thanks
3
votes
1answer
34 views

reduce the white space before and after new

How do I reduce the white space before and after the \begin{mq} … \end{mq} block in the following code? Ideally, I would like the white space between the environment and the preceding and succeeding ...
1
vote
1answer
13 views

Copyright notice overlapping with text in Lyx [duplicate]

I have a copyright notice on my IEEE Journal that is overlapping with my text while using Lyx and I am not sure why it is happening or what I can do to fix the problem. I have tried looking up ways ...
2
votes
1answer
61 views

Removing red boxes around references

I have seen some solutions on here to problems regarding removing red boxes from hyperlinks, but I have an issue with red boxes around references. Whenever I use the commands \eqref{} or \footnote{} ...
147
votes
4answers
7k views

Pretty Table of Contents

I would like to know if it's possible to have a Table of Contents looking like the following, where the number of the page is the big number on the left. The sections could look like in the ...
3
votes
3answers
117 views

Enclose Code in Latex with single user-defined command

I am using the following to enclose my code in a box and I like the formatting but I have the problem that everytime I have to write a lot of stuff. Before the begin{document} I have defined: ...
1
vote
2answers
37 views

Right justify number with filler periods

How do I duplicate this in LaTex?
0
votes
1answer
46 views

Controlling properties of sections and subsections

\documentclass[12pt, a4paper]{article} \usepackage[ top=3.5cm, bottom=2cm, left=3.5cm, right=2cm, headsep=1.5cm, ]{geometry} \usepackage{fancyhdr} \usepackage{sectsty} \pagestyle{fancy} ...
0
votes
0answers
34 views

Need help in formatting my document

I am typing my document using Texstudio and have landed up with 2 difficulties. How to copy a table from MS Word to my Texstudio working space ? I have created a table (suppose) in texstudio and ...
37
votes
4answers
5k views

Make one author's name bold every time it shows up in the bibliography

I'm working on a CV. I'd like to highlight my name in every entry in the bibliography. I've tried simply replacing {myname} with {\bf myname} or {{\bf myname}}, but they fail with various errors, ...
2
votes
1answer
51 views

How to Use ModernCV Icons with Classic Style CV

I really like the style of this CV -- I am not sure if the style has a name, but I have seen it many times. Here is the source code for my CV: \documentclass[margin,line,pifont,palatino,courier]{res} ...
3
votes
1answer
39 views

Create three column layout with large text in the middle and annotations in right column

I am trying to create a page layout which looks like this quick sketch I have done with Apple Pages: In the left column there should be some headings of the paragraphs printed in the middle column. ...
2
votes
1answer
41 views

Navigating latex packages for their options

I'm trying to find all the different font options available in the package devanagari for typesetting hindi. I found a template online, whose reduced working form is \documentclass{article} ...
16
votes
2answers
4k views

\listings code style for HTML5 (CSS, HTML, JavaScript)

I would like to create a code style for HTML5 that can be used with the \listings package. An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
0
votes
0answers
32 views

How to contain the Program Listing in the Appendix within the margin?

I have added the Code Listing using - Insert -> File -> Child Document
3
votes
1answer
53 views

Beamer ToC Advanced Overlays

I want to have a Table of Contents in my Beamer presentation, but I want it to be laid out in an apparently particular way. For the first section, what I want is an overlay for each section (I ...
1
vote
2answers
33 views

Format table column widths to fit single column of twocolumn document

I am using a two column format, and I would like the following table to fit in one column, along with text wrapping on the title row. How do I do this? Thanks. \documentclass[10pt,twocolumn]{article} ...
0
votes
0answers
15 views

\otoprule not appearing

I am using a two column format, and for the following table the \otoprule line after the first row is not appearing. \documentclass{sig-alternate} \usepackage{array,graphicx} \usepackage{booktabs} ...
0
votes
0answers
13 views

How to format labels of user interface elements?

I am writing a document using LaTeX which describes an application I have developed. I refer to some buttons or sections of my application in the document and I want to format them in a special way. ...
7
votes
2answers
103 views

Aligning equations in matrix with outside character

I would like to align these equations on the equals sign (so that the curly braces are flush) and also align the 'ranges' on the RHS side on the 't'. Can anyone help? \begin{equation} ...
1
vote
1answer
51 views

Simple signatures style

I would like to make signatures on my document like this. I'm using \documentclass{article}
5
votes
2answers
69 views

Align left and align right across lines

I am new to latex and I want the following format but simple things like \hfill does not help here. Name:XX Email: abc@example.com Work:YY ...
5
votes
1answer
156 views

Different shape of parentheses

While correcting a thesis of a colleague I found this: As you can see, the parentheses around the first and the second item differ, however, they're implemented in the exact same manner (see code ...
2
votes
1answer
60 views

Singapore Beamer Template: Add numbering in Bibliography

I'm using the Singapore beamer theme. Using "thebibliography" I noticed that there is no numbering for the bibitems. For printing purposes this is very annoying. Tried using \bibliographystyle but ...
2
votes
3answers
41 views

What does it mean to be a cell based table without being vertically merged?

I am given these requirements and I am not really sure what they mean. I need some help figuring out what they mean in terms of Latex code: -Tables must be cell based; do not merge rows. - ...
3
votes
1answer
110 views

Essay Formatting

I have an essay I need to write and I would like to use MacTeX, however it has been very challenging to get it formatted to all of my prof.'s requirements. If someone could help that would be SO ...
4
votes
1answer
56 views

Font size inside subequations environment!

How I can change the font size inside the subequations environment? See below: \begin{equation} \textstyle \xi_{1} = A + B + C; \end{equation} The command \textstyle works fine inside the ...
1
vote
1answer
42 views

Format date {yyy-mm-dd} as “mmm 'yy”

I have been struggling with this for some time, with combinations of the isodate and datetime packages, without success. I would like to create a macro that receives an input in the format ...
5
votes
4answers
146 views

Center text over multicolumn in table

I have created a table that is the width of my page, but when trying to center the text in the top row over the merged cell, the text is not centering with respect to the entire length of the cell. ...
2
votes
1answer
95 views

Journal of Fluid Mechanics Class Constraints

I am trying to format a paper to be consistent with the JFM style guidelines. I am using the JFM Latex class provided on the website. However, this class appears to be forcing a format that is not ...
4
votes
2answers
301 views

Fast way to start a new line

I have quite a few equations in a latex document that are similar to this one here: \mathbb{E}(\cos^2) = \frac{\pi \left(\beta \left(8 \left(2 \alpha ^2+2 \alpha +1\right) \beta ^2-12 (2 ...
3
votes
2answers
39 views

Appendix with a colon causing problems in list of figures

I have added a colon to Appendix in the toc using the following command. \apptocmd{\appendices}{\apptocmd{\thesection}{:}{}{}}{}{} Due to this, in the list of figures section, I am getting ...
2
votes
2answers
58 views

Text to wrap around informational box

I'd like to have an informational box placed to the edge of a page of text, and have the text wrap around it, like so: How should I go about doing this?