How can i use special characters (ä,ü..) in LaTeX package qrcode - latex

Code with Vcard informations in it. How can i use sepcial german characters like ä,ü, and so on. My file is saved under utf-8 encoding. This minimal example gives error.
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[]{qrcode}
\begin{document}
\qrcode{
BEGIN:VCARD\?
VERSION:4.0\?
N:Do;Jon;;Dr.\?
FN:Dr. Jon Do\?
ORG:Firma; Überirdische Firma\?
END:VCARD
}
\end{document}

I could solve the problem. But i do not know why it works..
Adding this line VERSION:3.0\? fixed the problem.

Related

Latex-url link manipulating

I am trying to insert a link like this: https://www.bing.com/search?q=latex%20&qs=n&form=QBRE&=Search%20%7B0%7D%20for%20%7B1%7D&=Search%20work%20for%20%7B0%7D&msbsrank=6_9_File_2&sp=-1&ghc=1&pq=latex%20&sc=9-6&sk=&cvid=9E08663E21964006BFBDECC6DB1F0884 to my document using latex.
I tried this line of code:
\href{https://www.bing.com/search?q=latex%20&qs=n&form=QBRE&=Search%20%7B0%7D%20for%20%7B1%7D&=Search%20work%20for%20%7B0%7D&msbsrank=6_9_File_2&sp=-1&ghc=1&pq=latex%20&sc=9-6&sk=&cvid=9E08663E21964006BFBDECC6DB1F0884}{\textit{\textbf{\underline{Something Linky}}}
And it produced an error.
Any help?
You are missing one closing } at the end:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{https://www.bing.com/search?q=latex%20&qs=n&form=QBRE&=Search%20%7B0%7D%20for%20%7B1%7D&=Search%20work%20for%20%7B0%7D&msbsrank=6_9_File_2&sp=-1&ghc=1&pq=latex%20&sc=9-6&sk=&cvid=9E08663E21964006BFBDECC6DB1F0884}{\textit{\textbf{\underline{Something Linky}}}}
\end{document}

Is there a way to make the a glossary entry clickable?

I'm making a glossary using the package \usepackage{glossaries}. This works fine but I have a slight problem.
I would like to make the word I call from the glossary (with \gls(a_word)) clickable, so the reader is automatically taken to the glossary entry that match the word he clicked on.
So far, I tried to use hyperlinks, without any success, and I couldn't find a similar problem on Internet nor on SO.
I hope you will be able to help me out with this!
Thanks by advance
Edit: Here's the code I'm using
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[nonumberlist,toc,chapter=chapter]{glossaries}
In glossary:
\makeglossaries
\setglossarypreamble{Source is INSEE}
\newglossaryentry{AAV}
{
name=AAV,
description={The description of what AAV is.}
}
In document:
sometextsometext (see \Gls{AAV}). Sometextsometext
If you load the hyperref package, the abbreviation will automatically be clickable:
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[nonumberlist,toc]{glossaries}
\makeglossaries
\setglossarypreamble{Source is INSEE}
\newglossaryentry{AAV}
{
name=AAV,
description={The description of what AAV is.}
}
\begin{document}
sometextsometext (see \Gls{AAV}). Sometextsometext
\printglossaries
\end{document}

LaTeX: Problem with the babel package in beamer class with TeXmaker

here is minimal example of my problem:
\documentclass[14pt,aspectratio=169,German,handout]{beamer}
\mode<presentation>
{\usetheme{Madrid}}
\usepackage[ngerman]{babel}
\begin{document}
Hello World
\end{document}
This compiles on overleaf fine, but on my Windows Workstation with TeXMaker, I get the following error:
Missing numer, treated as zero \l#German \ldf#fginish \CurrentOption
It compiles only if I remove the \usepackage{babel} line.
What can I do?
thx
The log file says: (removed because its too large)
My solution is:
\documentclass[14pt,aspectratio=169,handout]{beamer}

pdftex driver of hyperref package doesn't work with utf-8 encoded .tex files

i use pdflatex to generate pdf files. my source files are all utf-8 encoded because of non-english characters. without \usepackage{hyperref} code, they can be compiled without any problem. but when i put \usepackage{hyperref} (even without any \href{}{} code) in the package list, an error would occur, saying
**************************************
! Use of \#chapter doesn't match its definition.
\CJK#altchar ...fx \csname \reserved#a \endcsname
\relax \CJKsymbol {\#tempc...
l.1 \chapter{XXX}
?
**************************************
where "XXX" represents non-english characters.
then i googled a lot, finding the cause is that hyperref uses pdftex drivers, which doesn't work with utf-8 encoded files. i checked this page: http://www.tug.org/applications/hyperref/manual.html , and failed to find any driver suitable for pdflatex.
i tried \usepackage[utf8]{inputenc}, but still couldn't get it to work.
so anyone could help me? thank you!
Have you tried loading hyperref using \usepackage[unicode]{hyperref}, or, equivalently, specifying \hypersetup{ unicode = true } right after ? This should enable you to use unicode characters in bookmarks.
Try this, works for me. Instead of:
\usepackage[pdftex, unicode,
pdfauthor={çç êÊ},
pdftitle={T\'{o}picos Avançados ôô},
pdfsubject={Trabalho 6},
pdfkeywords={a1, a2},
pdfproducer={Latex with hyperref},
pdfcreator={pdflatex}]{hyperref}
I do:
\usepackage[pdftex, unicode,
pdfproducer={Latex with hyperref},
pdfcreator={pdflatex}]{hyperref}
\hypersetup{
pdfauthor={çç êÊ},
pdftitle={T\'{o}picos Avançados ôô},
pdfsubject={Trabalho 6},
pdfkeywords={a1, a2},
}
I hope it works for you too.

Listings adds whitespaces, how to remove it?

Hey guys,
when using listings to present code in my PDF, it adds whitespaces after some characters.
This is how it looks in the pdf (I'm not allowed to post images because of reputation, 'hence add ".png" to the url, sorry).
I'm using the following code to add the listings.
\newcommand{\lstchange}[2]{
\lstset{breaklines=true,
frame=single,
captionpos=b,
basicstyle={\ttfamily\footnotesize},
showspaces=false,
showstringspaces=false,
showtabs=false,
numberstyle={\ttfamily\footnotesize},
keywordstyle={\bfseries\color{blue}},
stringstyle=\color{darkorange}\ttfamily,
commentstyle=\color{OliveGreen},
language=#1,
morekeywords={#2} }
}
% ...
\lstchange{bash}{svn , cd, gnome-open}
\begin{lstlisting}[caption=someCaption, label=someLabel]
#!/bin/bash
svn checkout http://opendecisionrepository.googlecode.com/svn/trunk/sources/web-interface/src/main/webapp odr-appetizer-2 -r 621
cd odr-appetizer-2
#open drawing.xhtml
gnome-open drawing.xhtml
\end{lstlisting}
Does anyone of you have an idea why this happens? Even if I use the standard example from the latex wikibook this happens.
Maybe this is also important for you, the config file:
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=2.5cm, right=2.5cm, top=2.5cm, bottom=3cm, a4paper]{geometry}
\usepackage[pdftex]{graphics}
\usepackage{fancyhdr}
\usepackage{%
array,
booktabs,
dcolumn,
rotating,
shortvrb,
tabularx,
units,
url,
xcolor,
lastpage,
longtable,
lscape,
multirow,
amssymb,
amsmath,
float,
chngpage,
colortbl,
helvet,
listings
}
Thanks in advance!
Cheers,
Ben
Cannot reproduce this here (with \documentclass{article}), it looks fine. I only had to comment out "OliveGreen" because it was unknown.

Resources