I want to create a qrcode matching a predefined template that contains two empty lines. I'm using the qrcode package, and everything is fine, if I just put
\qrcode{a
b}
in my document. The code is generated, and scans with the two empty lines.
However, I absolutely cannot figure out, how to wrap this call in a \newcommand. When I try
\newcommand{\mycode}[2]{%
\qrcode{#1
#2}}
\mycode{a}{b}
I receive the treaded
! Paragraph ended before \qrcode@in was complete.
error. I've read all about how TeX reads the input (the famous "Chapter 8" and more), and when empty lines become \par, etc., but I've failed to find the loophole around this problem. I've tried \char13\char13, which failes with
Missing \endcsname inserted.
So how can I overcome this problem?
\documentclass
command, include any necessary packages and be as small as possible to demonstrate your problem. At the moment we have to guess what packages etc you are using before we can compile your code.\newcommand{\mycode}[2]{% \qrcode{#1}\\[+2\baselineskip]\qrcode{#2}}
?