Questions tagged [bytefield]

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.

The bytefield package helps the user create illustrations for network protocol specifications and anything else that utilizes elds of data. These illustrations show how the bits and bytes are laid out in a packet or in memory.

43 questions
6
votes
1 answer

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 than editing bytefield for globally larger pixel…
boffin
  • 493
6
votes
1 answer

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 knowledge is not particularly strong, is there a good…
Pat
  • 463
4
votes
2 answers

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 make the gap between leftwordgroup and bytefield a…
Nikolar
  • 77
4
votes
1 answer

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
4
votes
1 answer

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{leftwordgroup} \\ …
Joe Doyle
  • 143
4
votes
2 answers

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 the bytefield?
3
votes
1 answer

bytefield `bgcolor` argument apparently not working

Following page 17 of the bytefield package documentation: extracting the above to this…
Ralph
  • 133
2
votes
1 answer

Problem with bytefield and resizebox

When using a very long bytefield I want to use resizebox so it fits in a page. However there seems to be a incompatibility. Based from this answer I assumed it would be easy to do but I face errors when doing…
jagjordi
  • 794
2
votes
3 answers

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: \newcommand{\baselinealign}[1]{% \centering \small …
Tommiie
  • 526
2
votes
2 answers

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 the documentation doesn't show such examples!).…
ecfedele
  • 243
  • 1
  • 5
2
votes
1 answer

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 :…
3isenHeim
  • 2,107
1
vote
2 answers

Moving/Indenting Two Bytefields

I created two bytefields with the package bytefield. The code I used is the following: \begin{bytefield}[endianness=little,bitwidth=0.077777\linewidth]{12} \bitheader{0-11} \\ \bitbox{1}{82} & \bitbox{1}{70} & \bitbox{1}{70} & \bitbox{1}{7}…
1
vote
1 answer

How to scale a bytefield

I'd like to fit a text into the first 3 bits of a 32-bit bytefield as shown below: \begin{bytefield}[endianness=big,bitwidth=1em]{32} \begin{rightwordgroup}{peripheral\\registers} \bitheader{0-31} \\ …
1
vote
1 answer

Manipulate bytefield bit header

I'm making a datagram frame using the bytefield, but some of the datagram fields are variable so i would like to manipulate the header to look it like the example bellow. Can someone give me a hint ?
hen_b
  • 115
0
votes
0 answers

bytefield package \rightwordgroup misaligned curly bracket when compiling with LuaLaTeX

I am using the bytefield package and am following the example listed on page 7 of the the package documentation on CTAN. Creating the following MWE from the code I get the result…
jopeto
  • 165
1
2