## LaTeX forum ⇒ Text Formatting ⇒ Issues with enumerate Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
KCook3824
Posts: 2
Joined: Sat Nov 20, 2021 7:12 pm

### Issues with enumerate

First I've not used Latex very much yet and am admittedly fairly weak with it. I've started with a template but had to create a new command to get the formatting I wanted. I'm calling the new command inside of an enumerated list. Issues I have:

second item is not being numbered
Large between {#1} and {#2} (included the newcommand definition below)
Error saying enumerate is being ended by \end{document} even though I've included \end{enumerate} (though "enumerate" is showing in the document as text.

newcommand definition is below:

\newcommand{\PubEntry}[4]{ \noindent {#1} \hfill \noindent \emph{#2} \normalsize \par}

enumerate section below:

\begin{enumerate}\item \PubEntry{Aleksic, J. et al. including \textbf{Cook, K. W.}, 2013, A\&A, 556, A67, 28,}{"The simultaneous low state spectral energy distribution of 1ES 2344+514 from radio to very high energies"}\item \PubEntry{Thomas-Osip, J.E., Prieto, G., Berdja, A., \textbf{Cook, K. W.}, Villanueva Jr., S., DePoy, D.L., Marshall, J. L., Rheault, J.P., Allen, R. D., and Carona, D. W., 2012, PASP, 124, 84,}{"Characterizing Optical Turbulence at the GMT site with MooSci and MASS-DIMM"}\end{enumerate}

Hopefully this isn't too stupid but I appreciate any help and suggestions you have.
Attachments
Output
Screen Shot 2021-11-20 at 12.21.37 PM.png (61.6 KiB) Viewed 790 times

LaTeXguide.org • LaTeX-Cookbook.net

Bartman
Posts: 248
Joined: Fri Jan 03, 2020 2:39 pm

### Issues with enumerate

It would be accommodating of you if you could give a minimal working example and mark its code.

This numbered list looks like a bibliography. In LaTeX introductions it is explained, among other things, what possibilities there are to create one.

Why do you define a command with four arguments but only use two of them?

A note on the content of the list: The csquotes package can help you add quotation marks.
Last edited by Bartman on Sat Nov 20, 2021 10:58 pm, edited 1 time in total.

KCook3824
Posts: 2
Joined: Sat Nov 20, 2021 7:12 pm

### Issues with enumerate  Topic is solved

This was my first attempt to define a newcommand and I started from a previous example and adapted it. I didn't realize I had defined 4 arguments and changing that actually corrected the issue. In the future I'll be sure to keep your other comments in mind.

Not only is the problem fixed but I learned a bit too. Thank you!