Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 6

22 Sep '24, 10:25

Arathorn's gravatar image

Arathorn
1812

Je propose 2 solutions. \documentclass{article} \usepackage{qrcode} \newsavebox{\qrcodebox} \begin{document} \begin{lrbox}{\qrcodebox} \qrcode{https://texnique.fr/osqa/questions/12690/conflit-packages-qrcode-et-tabular} \end{lrbox}% \begin{tabular}{l r } le lien vers le message & \usebox{\qrcodebox} \\ \end{tabular} \end{document} \documentclass{article} \usepackage{graphicx,array} %====== begin file contents ====== \begin{filecontents*}[overwrite]{qrcode.tex} \documentclass[border=10pt]{standalone} \usepackage{qrcode} \begin{document} \qrcode{https://texnique.fr/osqa/questions/12690/conflit-packages-qrcode-et-tabular} \end{document} \end{filecontents*} %====== end file contents ====== \IfFileExists{qrcode.pdf} {% if exist do nothing % file age should be taken under consideration but it is ignored for simplicity! } {% if not exist do the following \immediate\write18{pdflatex qrcode}% } \begin{document} \begin{lrbox}{\qrcodebox} \qrcode{https://texnique.fr/osqa/questions/12690/conflit-packages-qrcode-et-tabular}\end{lrbox}% \begin{tabular}{l r } le lien vers le message & \usebox{\qrcodebox} \\ \end{tabular} \begin{tabular}{l m{2cm} } Le lien vers le message & \includegraphics{qrcode} \\ \end{tabular} \end{document} Sources : - https://tex.stackexchange.com/questions/552754/how-to-put-qrcode-inside-a-cell-in-tabularx - Pour la seconde solution, il s'agit d'un exemple adapté de mon pense-bête mais je n'ai pas noté la source qui doit être un exemple issu du même site.
cliquez ici pour masquer/afficher la révision 5

22 Sep '24, 10:23

Arathorn's gravatar image

Arathorn
1812

Je propose 2 solutions. \documentclass{article} \usepackage{qrcode} \newsavebox{\qrcodebox} \begin{document} \begin{lrbox}{\qrcodebox} \qrcode{https://texnique.fr/osqa/questions/12690/conflit-packages-qrcode-et-tabular} \end{lrbox}% \begin{tabular}{l r } le lien vers le message & \usebox{\qrcodebox} \\ \end{tabular} \end{document} \documentclass{article} \usepackage{graphicx,array} %====== begin file contents ====== \begin{filecontents*}[overwrite]{qrcode.tex} \documentclass[border=10pt]{standalone} \usepackage{qrcode} \begin{document} \qrcode{https://texnique.fr/osqa/questions/12690/conflit-packages-qrcode-et-tabular} \end{document} \end{filecontents*} %====== end file contents ====== \IfFileExists{qrcode.pdf} {% if exist do nothing % file age should be taken under consideration but it is ignored for simplicity! } {% if not exist do the following \immediate\write18{pdflatex qrcode}% } \begin{document} \begin{tabular}{l m{2cm} } Le lien vers le message & \includegraphics{qrcode} \\ \end{tabular} \end{document} Sources : - https://tex.stackexchange.com/questions/552754/how-to-put-qrcode-inside-a-cell-in-tabularx - Pour la seconde solution, il s'agit d'un exemple adapté de mon pense-bête mais je n'ai pas noté la source qui doit être un exemple issu du même site.
cliquez ici pour masquer/afficher la révision 4

22 Sep '24, 10:23

Arathorn's gravatar image

Arathorn
1812

cliquez ici pour masquer/afficher la révision 3

22 Sep '24, 10:22

Arathorn's gravatar image

Arathorn
1812

cliquez ici pour masquer/afficher la révision 2
Mise en page, séparation du code

22 Sep '24, 10:21

Arathorn's gravatar image

Arathorn
1812

cliquez ici pour masquer/afficher la révision 1

22 Sep '24, 10:18

Arathorn's gravatar image

Arathorn
1812

C'est votre première visite ici ? Consultez la FAQ !

×