Tag Info

Hot answers tagged

15

Use the etoolbox package and its \patchcmd macro to selectively change sig-alternate' s definition of \maketitle, i.e. remove the \@copyrightspace macro (which is responsible for the copyright space). \documentclass{sig-alternate} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{etoolbox} \makeatletter ...


12

The class acm_proc_article_sp uses a wrong way to select fonts. The title is typeset with \ttlfont <title text> where \ttlfont is defined at line 320 in the .cls file by \newfont{\ttlfnt}{phvb8t at 18pt} The \newfont command in LaTeX has been deprecated since LaTeX2ε has been released, eighteen years ago. You can fix this by changing the way ...


11

Thanks to Harald's advice I found the following two-line solution to my problem: \usepackage{float} \newfloat{algorithm}{t}{lop} This was sufficient to make all my algorithm blocks to float exactly as I needed them to. See also: "float" package reference.


7

The memoir class enforces the use of proper font commands. The old two-letter commands such as \bf and \it, \sc, etc. are problematic and now very old. See Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX? Unfortunately, many older bibliography styles still use the old font commands, and since their code is not trivial ...


6

Define \l@paragraph (and \l@subparagraph) to do nothing (the class not defining \l@paragraph nor \l@subparagraph is a bug): \documentclass[prodmode,acmcsur]{acmsmall} % Aptara syntax \makeatletter \newcommand\l@paragraph[2]{} \newcommand\l@subparagraph[2]{} \makeatother \begin{document} \tableofcontents \section{A Section} \subsection{A Subsection} ...


6

Another option, sig-alternate.cls uses \uppercase in \@sect to format sectional unit titles; you can patch \@sect to use \MakeTextUppercase (from the textcase package) instead; in this way, the case of any math expressions in the titles won't be changed and the arguments of \cite, \label and \ref will also be prevented from being uppercased: ...


5

I am not sure what the exact page width of the sig-alternate class is, but from your image this I appeared to be about 5.0in. By using a p{} column type for the first column, eliminating the column soacing to the left of the first column and to the right of the last column, and reducing the inter column spacing with a @{\hspace{0.5em}} you can sqeeuze your ...


5

By default, the class sigplanconf typesets the authors in rows and uses maximum three authors per row (this is done using the macro \@titleauthors); to change this behaviour, you need to redefine \maketitle and to define a command to allow typesetting four authors in a row (the command \@ivtitleauthors in my example, which was defined in a similar fashion to ...


5

Here's another option that uses local definitions \documentclass{sig-alternate} \usepackage{ctable} \usepackage{lipsum} \begin{document} \subsection{Original} \[ G_{CS}(\mathbb{S_c})= \begin{cases} \displaystyle\sum_{k=1}^{r} \frac{Gmax(k)-q_k(s)}{Gmax(k)-Gmin(k)}.w_k & if\ Gmax(k) \neq Gmin(k) \\ 1 ...


5

There are many ways to reduce the place needed by the equation: \noindent skips the paragraph indenting. The spacing around binary operators and relational symbols can be reduced by changing \thinmuskip and \medmuskip. Instead of using \medmuskip=.625\medmuskip the expression below with \muexpr also scales the shrink and stretch components and keeps them. ...


4

This class file dates back more than 20 years and was written for LaTeX 2.09 and then patched somewhat to run under todays LaTeX. It is a rather good example of how should things not be done these days :-) the power of LaTeX to still be able to somehow deal with really old code If there is any chance to convince the conference organizers to have ...


4

I don't know if this has adverse effects on other parts of the document, but saying \AtBeginDocument{\setlength{\tempdimen}{\textwidth}} seems to solve the issue. The acmsmall class uses \tempdimen to set the captions, but the captions built by listings don't set it to a sensible value and so use the default (which is zero).


4

I propose a variant of this answer of mine. \begin{filecontents*}{\jobname.bib} @inproceedings{vlee2010, title={{First paper}}, author={\disambiguate{Lee V}{V.}{Lee}, VCCC and others}, booktitle={xyz}, year={2010}, } @inproceedings{jlee2010, title={{Second Paper}}, author={\disambiguate{Lee J}{J.}{Lee}, JCCC and others}, booktitle={pqr}, ...


3

I think the trick might be to use the \begin{figure*}...\end{figure*} environment. That should give you a figure that spans the whole page width, while allowing the rest of that page to be in two columns. In contrast, the \begin{figure}...\end{figure} environment gives you a figure that spans only one column.


3

In a single column layout I would not use the cases layout and instead write it as two equations with an inline condition. Also I took the _c out of the \mathbb since the AMS bb font doesn't have lowercase so it vanished in your posted image. If $G_{\mathrm{max}}(k) \neq G_{\mathrm{min}}(k)$ then \[ G_{\mathrm{CS}}(\mathbb{S}_c)= \sum_{k=1}^{r} ...


3

Narrow columns pose big problems with wide formulas. A possibility is to write the first condition on a line below the formula, sticking a bit outside: \documentclass[twocolumn]{article} \usepackage{amsmath,amssymb,lipsum} \newcommand\Gmax{\mathit{Gmax}} \newcommand\Gmin{\mathit{Gmin}} \begin{document} \lipsum*[2] \[ G_{CS}(\mathbb{S_c})= \begin{cases} ...


3

Since sig-alternate defines its own \caption command, the caption package is not really compatible with it; subcaption might work, but the result is not guaranteed. You can do with subfig: \PassOptionsToPackage{demo}{graphicx} % just for the example \documentclass{sig-alternate} \usepackage[caption=false]{subfig} \usepackage{lipsum} % just for the example ...


3

The acmsmall class is causing the numbers to be centered rather than right-aligned. You can correct this by redefining \alglinenumber as follows (updated to get fontsize): \newcommand{\myalgnumfont}{\fontsize{8pt}{9pt}\selectfont} \algrenewcommand{\alglinenumber}[1]{\myalgnumfont #1:} in the preamble. \documentclass{acmsmall} %\documentclass{article} ...


3

It seems the sigproc.bib file needs to be compiled between two runs of the latex, using the following command: latex sig-alternate bibtex sig-alternate latex sig-alternate Note that neither command bibtex sigproc.bib or bibtex sig-alternate.tex would work.


3

The LaTeX Wikibook section on algorithms explains this very nicely: The algorithmicx package provides a number of popular constructs for algorithm designs. Put \usepackage{algpseudocode} in the preamble to use the algorithmic environment to write algorithm pseudocode (\begin{algorithmic}...\end{algorithmic}). You might want to use the algorithm ...


3

The accepted answer somehow doesn't work for me, but I found another solution from this link Simply add the following lines before \begin{document}: \makeatletter \def\@copyrightspace{\relax} \makeatother


3

You don't want to use T5 encoding as the default encoding. So don't load it as the only (and the last encoding). Load both encodings and set T1 as default by loading it last: \documentclass{article} \usepackage[T5,T1]{fontenc} \begin{document} abc {\fontencoding{T5} \fontfamily{ccr} \fontseries{m} \fontshape{sc} \fontsize{10}{12} \selectfont Trying ...


3

With the balance package the output is correct. One must issue \balance between two paragraphs that fall in the first column of the final page. This might need to insert it manually in the .bbl file, if the last page consists only of bibliography items.


3

Contrary to the plain bibliography style, the acm style uses a lastname/firstname scheme to display author names, and it is common for this scheme to put a comma between the different name parts. Have a look at the ACM LaTeX style guide -- commas between last name and first name are the way it's meant to be.


3

The previous line with a q has ...\hbox(7.40997+2.04993)x396.0, glue set 0.23616 so depth 2 and a bit points the height of AA is 9.07591pt, the sum of which is more than the specified baselineskip of 11pt. If you changed the baselineskip to 11.1 pt things would be more even. acmsmall has \renewcommand{\normalsize}{% ...


3

The class sets very tight line spacing (10/11), so these problems are unavoidable without a specially crafted font. I've prepared two examples, by adding \smash{\AA rno} in the first paragraph of the sample article. Example 1 (acceptable) Example 2 (unacceptable) One could think to write all names in smaller size small-caps, but this would require ...


3

Put \and after the sixth author to create another row. \documentclass[9pt]{sig-alternate} \begin{document} \title{Paper title} \numberofauthors{7} \author{ % 1st. author \alignauthor Author Name\\ \affaddr{This is Author School Name}\\ \email{AuthorEmail@gmail.com} % 2nd. author \alignauthor Author Name\\ \affaddr{This is Author ...


3

I would suggest creating a command that would represent your HTML tags. Something like \htmltag: \documentclass{article} \usepackage{graphicx}% http://ctan.org/pkg/graphicx \newcommand{\htmltag}[1]{% \scalebox{.6}[1]{$<$}{\ttfamily#1}\scalebox{.6}[1]{$>$}% } \begin{document} There is \htmltag{source} and also \htmltag{img}. \end{document}​ ...


2

Versions 1.1 and 1.4 of the class file acmsmall.cls -- the versions linked to in your posting and in @speravir's comment, respectively -- seem to be identical with respect to the formatting of the bibliography. Hence, the following code should work with either version of the acmsmall class file. (Aside: the website says all file versions are "2", but when ...


2

The same error occurs with the sig-alternate template, but is fixed there by using \usepackage{caption} \DeclareCaptionType{copyrightbox} \usepackage{subcaption} This might work for you as well. Reference at: http://tug.org/pipermail/texhax/2010-September/015596.html



Only top voted, non community-wiki answers of a minimum length are eligible