Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to change the shape of the bullet list by using Lyx 2.1.0. The class of my document is report (and the language is French).

I want to change the form of bullet list dash to another.

share|improve this question
1  
Welcome to SE.TeX. The label used by the itemize environment is defined by the \labelitemi command (equal to \textbullet by default). For example, this answer shows how to change the label from a bullet to a square. (To use the new label throughout your document, you would need to place \renewcommand{\labelitemi}{$\blacksquare$} on the preamble.) –  nnunes Apr 29 at 16:19
    
Also have a look on the package enumitem. It provides a very easy access to change the bullet labels. –  Christian Hupfer Apr 29 at 19:28

1 Answer 1

up vote 4 down vote accepted

Here is how you could use the enumitem package for this, via the LyX GUI.

  1. Document --> Settings --> Modules. Add the module called Customisable lists (enumitem).

  2. Create your list.

  3. Right click the first item in the list, and choose Itemize options:

    enter image description here

  4. In the inset that appears, write

    label=<whatever symbol you want>
    

    You can either use LaTeX code directly via an ERT inserted with Ctrl + L, or you can use Insert --> Special character --> Symbols, or any mathematical symbol from the math toolbar, by adding an inline math inset, with Ctrl + M.

Examples

  • To get the dagger, after writing label=, add an inline math inset with Ctrl + M and type \dagger to get the dagger symbol.

  • To get an em-dash, you can either add an ERT and type ---, or go to Insert --> Special character --> Symbols, and find the em dash under General punctuation.

  • There are various cross-shapes under the Dingbats group in Insert --> Special character --> Symbols.

    The pifont package also contains various cross-shapes. Try adding \usepackage{pifont} to the LaTeX preamble, and using \ding{55} or \ding{56} in an ERT.

    (By the way, tables 248 to 251 of The Comprehensive LaTeX symbol list lists such symbols from bbding and pifont.)

How it could look in LyX:

enter image description here

.lyx file for the above screenshot is below. You can save this as a something.lyx and open it in LyX.

#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{pifont}
\end_preamble
\use_default_options true
\begin_modules
enumitem
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
List with em-dash:
\end_layout

\begin_layout Itemize
\begin_inset Argument 1
status open

\begin_layout Plain Layout
label=
\begin_inset ERT
status open

\begin_layout Plain Layout

---
\end_layout

\end_inset


\end_layout

\end_inset

Lorem ipsum.
\end_layout

\begin_layout Standard
List with cross-shape from Insert --> Special character --> Symbol (
\family typewriter
bbding
\family default
-package):
\end_layout

\begin_layout Itemize
\begin_inset Argument 1
status open

\begin_layout Plain Layout
label=✗
\end_layout

\end_inset

Lorem ipsum
\end_layout

\begin_layout Standard
List with cross-shape from 
\family typewriter
pifont
\family default
:
\end_layout

\begin_layout Itemize
\begin_inset Argument 1
status open

\begin_layout Plain Layout
label=
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
ding{56}
\end_layout

\end_inset


\end_layout

\end_inset

Lorem ipsum
\end_layout

\end_body
\end_document
share|improve this answer
    
Thanks for your solution –  GoldRay Apr 29 at 22:30
    
How can I get a form of "cross" type ? –  GoldRay Apr 29 at 23:11
    
@user1936895 What kind of cross? –  Torbjørn T. Apr 29 at 23:53
    
I edited my answer slightly, by the way. –  Torbjørn T. Apr 30 at 0:03
    
@TorbjørnT. Nice answer. Which symbol did you insert where the package was not added? This sounds like a LyX bug. If you find other bugs in LyX (even if you're not sure they're bugs or if you're not sure if they've been fixed), please send me an email at skostysh@lyx.org or post on lyx.org/trac –  scottkosty Apr 30 at 6:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.