Questions tagged [cryptocode]
The cryptocode tag has no usage guidance.
21
questions
1
vote
0
answers
18
views
Using "cases" inside of cryptocode pseudocodeblock [duplicate]
I'm trying to use "cases" (from the amsmath package) inside of a "pseudocodeblock" (from the cryptocode package). However, this causes errors, apparently because of a clash between ...
1
vote
1
answer
64
views
How to put a text inside a box within a boxed environment?
I have the following LaTeX code, which makes use of a boxed environment. I want to put some of the text within a dashed and normal box, but it throws an error. Any ideas how to achieve this?
\...
2
votes
0
answers
106
views
Document hangs when compiling when loading breqn (even without using it)
The following document hangs when compiling, seems like I can't load breqn, bracket and cryptocode (or is it tikz?) together… It compiles fine when I unload \usepackage{breqn} but I would like to use ...
0
votes
1
answer
231
views
Automatically scaling pseudocodeblock to fit in the page
I have an environment (pseudocodeblock from the cryptocode package) that goes into the margin if the content is too large:
For now, I can manually resize it using \scalebox and minipage, but I need ...
1
vote
1
answer
181
views
Cryptocode pseudocode: ignore a single line's column sizes
I'm writing a 2-player protocol with cryptocode's pseudocode, and have a while condition which applies to both players.
Since the while condition is long it shifts the other columns far to the right, ...
1
vote
1
answer
708
views
Centering a pchstack environment that is wider than \textwidth
I have a pchstack environment from the cryptocode package that is slightly too wide to fit within the text width. I want to center it anyway such that it encroaches on both margins. A minimal example ...
3
votes
1
answer
482
views
Cryptographic protocol, execution example
Is there an easy (or even hard) way to draw an execution example of a cryptographic protocol? I'm trying to write about BB84 in my master's thesis, i'm looking for something like this:
or this:
I ...
2
votes
0
answers
181
views
Cryptocode breaks multi-column matrices
I am using the package cryptocode to typeset some algorithms. There, I need to write a 2x2 matrix, but using & breaks the compilation with pdflatex, xelatex and lualatex.
Here is a minimal example ...
1
vote
2
answers
428
views
Cryptocode/falign: spacing between lines
I'm using cryptocode to display some crypto-related things in a memoir document, but I'd like to decrease the default spacing, which is huge (especially when using one half spacing in the rest of the ...
2
votes
2
answers
227
views
Cryptocode: Cref should link to a game, and write its name
I'm using \cryptocode to display codes like:
By default, it seems that it's not floating. However, when the games are big I'd prefer to make them float. Moreover, to refer to them, I'd like to just ...
1
vote
1
answer
304
views
How to remove the etex warning when using cryptocode with the llncs document class?
When using the cryptocode package along with the llncs document class, as provided by the Overleaf template, etex complains with the following warning:
/usr/local/texlive/2020/texmf-dist/tex/latex/...
0
votes
2
answers
966
views
How can I create an alice/bob (crypto) protocol diagram with arrows
This image is taken from Boyd's book 'Protocols for Authentication and Key Establishment'. How can I create something similar? The arrows are important to me, since they allow to denote that User A ...
4
votes
1
answer
267
views
Text running out of fbox
I have the following piece of Latex code. I want the text to be inside that box but it is running outside. Can someone please help?
\documentclass[]{article}
\usepackage{varwidth}
\usepackage{...
7
votes
6
answers
1k
views
How to fill a Vigenère square?
Im trying to do a Vigenère square, but I have to modify it several times, so
is there any way to fill it with multido or any other method, instead of tabular and by hand.
UPDATE
All are great answers ...
2
votes
1
answer
302
views
Cryptocode: first line number with label instead of hardcoded
In cryptocode, it is possible to define the first line number of a block using something like lnstart=3. However, most of the time I want to set this number depending on the position of a specific ...