Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ease commands copy/pasting #34

Closed
doegox opened this issue Jul 8, 2021 · 0 comments · Fixed by #39
Closed

Ease commands copy/pasting #34

doegox opened this issue Jul 8, 2021 · 0 comments · Fixed by #39

Comments

@doegox
Copy link

doegox commented Jul 8, 2021

Copy-pasting commands from the PDF is a bit cumbersome as it introduces spurious spaces and line numbers which need to be cleaned by hand.
E.g. it gives

sudo apt install build - essential cmake pkg - config libglm - dev \
2 libgtkmm -3.0 - dev libsigc ++ -2.0 - dev libyaml - cpp - dev \
3 liblxi - dev texlive texlive - fonts - extra libglew - dev \
4 catch2 libclfft - dev

You can fix both issues by changing all command listings as follows:

 On Debian/Ubuntu:
 
-\begin{lstlisting}[language=sh]
+\begin{lstlisting}[language=sh,numbers=none,columns=flexible]
 sudo apt install build-essential cmake pkg-config libglm-dev \

As a result, copy-pasting will give

sudo apt install build-essential cmake pkg-config libglm-dev \
libgtkmm-3.0-dev libsigc++-2.0-dev libyaml-cpp-dev \
liblxi-dev texlive texlive-fonts-extra libglew-dev \
catch2 libclfft-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant