This is for questions about using the bytefield package which is used to illustrate network and/or specific protocol details including but not limited to bit, bytes, endianness etc.

learn more… | top users | synonyms

2
votes
1answer
31 views

bytefield inside tabular

I wonder why it is not easily possible to put a bytefield enviroment into a tabular. This MWE \documentclass[border=2mm]{standalone} \usepackage{bytefield} \begin{document} \begin{tabular}{c} \...
1
vote
0answers
6 views

Using bytefield in standalone class cuts the field numbers

To me, the described behaviour appears to be a bytefield v2.2 package bug. Maybe I'm getting things wrong and standalone v1.2 is bugged as well. Or it's just me doing things wrong. Typesetting this ...
2
votes
1answer
40 views

Colored custom bytefield

I've made a bytefield packet (see picture), and I want to color the field with the field 256-bit RSA Signature : Here is the code I used (from another question) : \documentclass[10pt,a4paper]{...
0
votes
0answers
18 views

How to use \skippedwords horizontally in bytefield package

I've tried to use \skippedwords macro horizontally, here is my code: \documentclass{article} \usepackage[a4paper,margin=1in,landscape]{geometry} \usepackage{bytefield} \begin{document} \begin{...
1
vote
2answers
30 views

Bytefield colors and baseline align

I just found out about the bytefield package and read the documentation to customize the default layout a bit. I followed the documentation to make sure the baselines of all fields match: \...
1
vote
0answers
28 views

arbitrary bit positions with bytefield

I have just stumbled upon the bytefield package and I can't find any examples or useful documentation on how to use the package other than through examples. I'm trying to draw a memory address but I ...
2
votes
2answers
50 views

Arithmetic overflow error using bytefield package while attempting to constrain width

I'm attempting to draft a document that makes very heavy use of the bytefield package and running into the situation that it seems no good solution exists for fields that have to be 64 bits wide (even ...
14
votes
3answers
498 views

etex package still seems to be necessary in LaTeX2e 2015/10/01?

I've experienced this problem after upgrading to TeX Live 2015 and getting newer versions of all my packages. (Presumably some of those package updates are to blame.) MVE: \documentclass{scrartcl} \...
2
votes
1answer
47 views

Custom frame length

I'm working on a custom protocol, with custom frame lengths. I'm drawing the frames using bytefield, and I have a problem, as the length of my frame isn't a multiple of 16 (or 32). Here's my MWE : ...
4
votes
1answer
22 views

Using bytefield as parameter to self-defined macro raises error

I defined a simple LaTeX macro \bansen which takes a single argument: \newcommand{\bansen}[1]{#1} Unfortunately, I noticed that I can not use a bytefield environment as a parameter for this macro ...
4
votes
2answers
80 views

Bytefields: horizontally align leftwordgroup

My leftwordgroups look pretty ugly in my bytefields. Is it possible to make the same gap between bytefield and leftwordgroup as between bytefield and rightwordgroup? Or is it at least possible, to ...
3
votes
1answer
65 views

Using bytefield with wrapfigure

I want to position a bytefield at the right side of the page. For that reason I use the wrapfig package. If I make the wrapfigure smaller than 0.8\textwidth it doesn't work. If it's 0.8\textwidth (or ...
1
vote
1answer
49 views

How to use footnotes in a bytefield?

At the moment I am trying to use \footnote inside the rightwordgroup and leftwordgroup environments of a bytefield, as well as inside the labels given to the fields themselves. The numbering at the ...
5
votes
1answer
247 views

Color \skippedwords in bytefield package respectively background color in general

The manual of the bytefield package explains how to color a normal bitfield with a colored \rule. I'm also using the \skippedwords command in my figures. I would like to also color that fields. ...
4
votes
0answers
103 views

Combining packets of different layers

I am starting with bytefield package. I'd like to combine differents byte layers, for example, how this: . Or this: . Can someone put a similar example? Thanks Best regards Oscar
3
votes
1answer
225 views

Best way to vertically align leftwordgroup with top of wordbox or bitbox

This code \documentclass{article} \usepackage{bytefield} \begin{document} \begin{bytefield}[leftcurly=.,leftcurlyspace=0pt]{32} \begin{leftwordgroup}{0} \wordbox{1}{\the\height} \end{...
5
votes
1answer
325 views

bytefield doesn't work with subfigures

I'm trying to use bytefield and subfig (and also tested with subfigure with the same results) but I got the error: ! Extra alignment tab has been changed to \cr. \endtemplate at the end ...
4
votes
2answers
173 views

multiline bitbox

I have the following figure \begin{bytefield}{31} \bitheader{0-31} \bitbox{120}{Head} \bitbox{8}{Tail} \end{bytefield} Is it possible to make the Head bitbox line-break at 32 bytes so it fits ...
4
votes
1answer
253 views

Bytefield bitheader escaping its minipage?

In a small segment of a much larger document, I'm building a poor man's two-column layout using minipages for a short run. The bitheader from the bytefield in the right column, however, seems to be ...
5
votes
1answer
593 views

Bytefield: Word Group below blocks

I would like to get an effect similar to bytefield's letf/right word groups on the bottom of a bytefield. I didn't see any obvious way to do this in the bytefield documentation. My Latex macro ...
24
votes
1answer
529 views

Please explain a strange interaction between bytefield, unicode-math, and mathtools

bytefield gives me different results when used in association with mathtools and unicode-math when used together. Here's my 'good' MWE: % !TEX TS-program = XeLaTeX \documentclass[a4paper]{article} %\...
2
votes
1answer
247 views

How to define a function with undefined number of arguments to draw bytefield with variable number of bitbox?

I have to draw lots of bytefield with different number of bitbox with different shapes. For that I define 3 functions: mybytefield that takes a variable number of arguments (using xparse with \...
5
votes
1answer
1k views

Bytefield - width of a single bit

Is there a way to control the width of a bit in pixels on a per-diagram basis ? I have a word in a packet with a lot of fields, my text is becoming smaller and smaller. Is there a workaround other ...