Commit ec0fa35d authored by Julie Blanc's avatar Julie Blanc

scientific-math-paper initial

parent d13b5bc6
.DS_store
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title></title>
<link rel="stylesheet" href="stylesheet.css" />
<style type="text/css">
code{white-space: pre;}
p{font-size:28px;}
</style>
</head>
<body>
<p style="font-family:'Spectral';font-weight:200;">Spectral extra-light 200</p>
<p style="font-family:'Spectral';font-weight:200;font-style:italic">Spectral extra-light 200 italic</p>
<p style="font-family:'Spectral';font-weight:300;">Spectral light 300</p>
<p style="font-family:'Spectral';font-weight:300;font-style:italic">Spectral light 300 italic</p>
<p style="font-family:'Spectral';font-weight:400;">Spectral regular 400</p>
<p style="font-family:'Spectral';font-weight:400;font-style:italic">Spectral regular 400 italic</p>
<p style="font-family:'Spectral';font-weight:500;">Spectral medium 500</p>
<p style="font-family:'Spectral';font-weight:500;font-style:italic">Spectral medium 500 italic</p>
<p style="font-family:'Spectral';font-weight:600;">Spectral semi-bold 600</p>
<p style="font-family:'Spectral';font-weight:600;font-style:italic">Spectral semi-bold 600 italic</p>
<p style="font-family:'Spectral';font-weight:700;">Spectral bold 700</p>
<p style="font-family:'Spectral';font-weight:700;font-style:italic">Spectral semi-bold 700 italic</p>
<p style="font-family:'Spectral';font-weight:800;">Spectral extra-bold 800</p>
<p style="font-family:'Spectral';font-weight:800;font-style:italic">Spectral extra-bold 800 italic</p>
</body>
</html>
/* Download from : <https://github.com/productiontype/Spectral>, 2018-06_30*/
@font-face {
font-family: 'spectral';
src: url('spectral-extralight.woff2') format('woff2'),
url('spectral-extralight.woff') format('woff'),
url('spectral-extralight.ttf') format('truetype');
font-weight: 200;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-extralightitalic.woff2') format('woff2'),
url('spectral-extralightitalic.woff') format('woff'),
url('spectral-extralightitalic.ttf') format('truetype');
font-weight: 200;
font-style: italic;
}
@font-face {
font-family: 'spectral';
src: url('spectral-light.woff2') format('woff2'),
url('spectral-light.woff') format('woff'),
url('spectral-light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-lightitalic.woff2') format('woff2'),
url('spectral-lightitalic.woff') format('woff'),
url('spectral-lightitalic.ttf') format('truetype');
font-weight: 300;
font-style: italic;
}
@font-face {
font-family: 'spectral';
src: url('spectral-regular.woff2') format('woff2'),
url('spectral-regular.woff') format('woff'),
url('spectral-regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-italic.woff2') format('woff2'),
url('spectral-italic.woff') format('woff'),
url('spectral-italic.ttf') format('truetype');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'spectral';
src: url('spectral-medium.woff2') format('woff2'),
url('spectral-medium.woff') format('woff'),
url('spectral-medium.ttf') format('truetype');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-mediumitalic.woff2') format('woff2'),
url('spectral-mediumitalic.woff') format('woff'),
url('spectral-mediumitalic.ttf') format('truetype');
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: 'spectral';
src: url('spectral-semibold.woff2') format('woff2'),
url('spectral-semibold.woff') format('woff'),
url('spectral-semibold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-semibolditalic.woff2') format('woff2'),
url('spectral-semibolditalic.woff') format('woff'),
url('spectral-semibolditalic.ttf') format('truetype');
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: 'spectral';
src: url('spectral-bold.woff2') format('woff2'),
url('spectral-bold.woff') format('woff'),
url('spectral-bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-bolditalic.woff2') format('woff2'),
url('spectral-bolditalic.woff') format('woff'),
url('spectral-bolditalic.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-extrabold.woff2') format('woff2'),
url('spectral-extrabold.woff') format('woff'),
url('spectral-extrabold.ttf') format('truetype');
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: 'spectral';
src: url('spectral-extrabolditalic.woff2') format('woff2'),
url('spectral-extrabolditalic.woff') format('woff'),
url('spectral-extrabolditalic.ttf') format('truetype');
font-weight: 800;
font-style: normal;
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<title>Scientific math paper</title>
<meta content="width=device-width, initial-scale=1" name="viewport">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script>
window.PagedConfig = {
auto: false
};
</script>
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
<script>
MathJax.Hub.Queue(function () {
window.PagedPolyfill.preview();
});
</script>
<!-- <link rel="stylesheet" href="fonts/ibm-plex-sans/stylesheet.css" /> -->
<!-- <link rel="stylesheet" href="fonts/ibm-plex-serif/stylesheet.css" /> -->
<link rel="stylesheet" href="fonts/spectral/stylesheet.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>An explicit formula for a weight enumerator of linear-congruence codes</h1>
<p id="authors">Taro Sakurai</p>
<p class="abstract">An explicit formula for a weight enumerator of linear-congruence codes is provided. This extends the work of Bibak and Milenkovic [IEEE ISIT (2018) 431–435] addressing the binary case to the non-binary case. Furthermore, the extension simplifies their proof and provides a complete solution to a problem posed by them.</p>
<p class="keywords">weight enumerator, code size, linear-congruence code, exponential sum</p>
<p class="date">August 29, 2018.</p>
<p class="math-class">2010 Mathematics Subject Classification: <span>94B60 (05A15, 11L15)</span></p>
<p class="source">Source: <span>https://arxiv.org/abs/1808.09365v1</span></p>
<h2 id="introduction" class="unnumbered unnumbered">Introduction</h2>
<p> Throughout this article, <span class="math inline"><em>n</em></span> and <span class="math inline"><em>m</em></span> denote positive integers, <span class="math inline"><em>b</em></span> denotes an integer and <span class="math inline">$\mathbb{Z}_q &#x2254; \{0, 1, \dotsc, q-1\} \subset \mathbb{Z}$</span> for a positive integer <span class="math inline"><em>q</em></span>. We will use <span class="math inline"><em>n</em></span> for a code length, <span class="math inline"><em>m</em></span> for a modulus, <span class="math inline"><em>b</em></span> for a defining parameter of a code and <span class="math inline"><sub><em>q</em></sub></span> for a code alphabet.</p>
<h3>Definition</h3>
<p>Let <span class="math inline">$a = (a_1, \dotsc, a_n) \in \mathbb{Z}^n$</span> and <span class="math inline"><em>b</em> ∈ ℤ</span>. The set <span class="math inline"><em>C</em></span> of all the solutions <span class="math inline">$x = (x_1, \dotsc, x_n) \in \mathbb{Z}_q^n$</span> for a linear congruence equation <span class="math display num">$$\label{eq: ax = b}
a\cdot x \equiv b \pmod m$$</span> is said to be a <em>linear-congruence code</em> where <span class="math inline">$a\cdot x &#x2254; a_1x_1 + \dotsb + a_nx_n$</span>. A linear-congruence code <span class="math inline"><em>C</em></span> is called <em>binary</em> when <span class="math inline"><em>q</em> = 2</span>.</p>
<p>Several deletion-correcting codes which have been studied are linear-congruence codes; the Varshamov-Tenengol’ts codes <span class="citation" data-cites="VT65"></span>, the Levenshtein codes <span class="citation" data-cites="Lev66"></span>, the Helberg codes <span class="citation" data-cites="HF02"></span>, the Le-Nguyen codes <span class="citation" data-cites="LN16"></span>, the construction <span class="math inline"><em>C</em></span> of Hagiwara <span class="citation" data-cites="Hag17"></span> (for some parameters), the consecutively systematic encodable codes and the ternary integer codes in <span class="citation" data-cites="Hag16"></span> fall into this category (Table).</p>
<table>
<caption>Examples of linear-congruence codes</caption>
<thead>
<tr class="header">
<th style="text-align: left;">Linear-congruence code</th>
<th style="text-align: right;"><span class="math inline"><em>q</em></span></th>
<th style="text-align: right;"><span class="math inline">$(a_1, \dotsc, a_n)$</span></th>
<th style="text-align: right;"><span class="math inline"><em>m</em></span></th>
<th style="text-align: left;">Constraints</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Varshamov-Tenengol’ts code</td>
<td style="text-align: right;"><span class="math inline">2</span></td>
<td style="text-align: right;"><span class="math inline">$( 1, \dotsc, n)$</span></td>
<td style="text-align: right;"><span class="math inline"><em>n</em> + 1</span></td>
<td style="text-align: left;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Levenshtein code</td>
<td style="text-align: right;"><span class="math inline">2</span></td>
<td style="text-align: right;"><span class="math inline">$( 1, \dotsc, n)$</span></td>
<td style="text-align: right;"><span class="math inline"><em>m</em></span></td>
<td style="text-align: left;"><span class="math inline"><em>m</em> ≥ <em>n</em> + 1</span></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Helberg code</td>
<td style="text-align: right;"><span class="math inline">2</span></td>
<td style="text-align: right;"><span class="math inline">$(v_1, \dotsc, v_n)$</span></td>
<td style="text-align: right;"><span class="math inline"><em>v</em><sub><em>n</em> + 1</sub></span></td>
<td style="text-align: left;"><span class="math inline"><em>s</em> ∈ ℤ<sub>&gt; 0</sub></span></td>
</tr>
<tr class="even">
<td style="text-align: left;">Le-Nguyen code</td>
<td style="text-align: right;"><span class="math inline"><em>q</em></span></td>
<td style="text-align: right;"><span class="math inline">$(w_1, \dotsc, w_n)$</span></td>
<td style="text-align: right;"><span class="math inline"><em>m</em></span></td>
<td style="text-align: left;"><span class="math inline"><em>m</em> ≥ <em>w</em><sub><em>n</em> + 1</sub></span>, <span class="math inline"><em>s</em> ∈ ℤ<sub>&gt; 0</sub></span></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Construction <span class="math inline"><em>C</em></span></td>
<td style="text-align: right;"><span class="math inline">2</span></td>
<td style="text-align: right;"><span class="math inline">$(c_1, \dotsc, c_n)$</span></td>
<td style="text-align: right;"><span class="math inline"><em>n</em></span></td>
<td style="text-align: left;"><span class="math inline">$b \not\equiv 0, n(n+1)/2 \pmod n$</span></td>
</tr>
<tr class="even">
<td style="text-align: left;">Consecutively systematic encodable codes</td>
<td style="text-align: right;"><span class="math inline">2</span></td>
<td style="text-align: right;"><span class="math inline">$(b_1, \dotsc, b_n)$</span></td>
<td style="text-align: right;"><span class="math inline">2<sup><em>s</em> + 1</sup></span></td>
<td style="text-align: left;"><span class="math inline"><em>b</em> = 0</span>, <span class="math inline"><em>s</em> ∈ ℤ<sub>&gt; 0</sub></span>, <span class="math inline">0 &lt;<em>n</em> − <em>s</em>&lt; 2<sup><em>s</em> − 1</sup></span></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Ternary integer code</td>
<td style="text-align: right;"><span class="math inline">3</span></td>
<td style="text-align: right;"><span class="math inline">$(t_1, \dotsc, t_n)$</span></td>
<td style="text-align: right;"><span class="math inline">2<sup><em>n</em> + 1</sup> − 1</span></td>
<td style="text-align: left;"></td>
</tr>
</tbody>
</table>
<p>The following problem concerning the size of a linear-congruence code—the number of solutions for a linear congruence equation <a href="#eq: ax = b" data-reference-type="eqref" data-reference="eq: ax = b">[eq: ax = b]</a>—is posed by Bibak and Milenkovic.</p>
<h3>Problem</h3>
<p>Give an explicit formula for the size of a linear-congruence code.</p>
<p>Finding an explicit formula would be a first step toward understanding the asymptotic behavior of the size of a linear-congruence code. Bibak and Milenkovic provide a solution to the problem for the binary case. In this article, we provide a complete solution to the problem with a simple proof, which improves the argument of Bibak and Milenkovic. Actually, what we will show is how the Hamming weights of the solutions for a linear congruence equation distribute. This immediately gives an expression of the size of a linear-congruence code involving exponential sums—Weyl sums of degree one.</p>
<p>To state the main theorem we need notation which will be standard.</p>
<h3>Definition</h3>
<p>For a code <span class="math inline"><em>C</em> ⊆ ℤ<sub><em>q</em></sub><sup><em>n</em></sup></span>, we define a polynomial <span class="math inline"><em>W</em><sub><em>C</em></sub>(<em>z</em>)</span> by <!--<br />--><span class="math display">$$W_C(z)
= \sum_{x \in C} z^{wt(x)}
= \sum_{i=0}^n A_i(C) z^i,$$</span><!--<br />--> where <span class="math inline">$wt(x)$</span> denotes the Hamming weight and <!--<br />--><span class="math display">$$A_i(C) &#x2254; |{ x \in C : wt(x) = i }\rvert \qquad (0 \leq i \leq n).$$</span><!--<br />--> The polynomial <span class="math inline"><em>W</em><sub><em>C</em></sub>(<em>z</em>)</span> is said to be the (non-homogeneous) <em>weight enumerator</em> of the code <span class="math inline"><em>C</em></span>.</p>
<p>Following custom due to Vinogradov in additive number theory, <span class="math inline"><em>e</em>(<em>α</em>)</span> denotes <span class="math inline">$e^{2\pi\alpha\sqrt{-1}}$</span> for <span class="math inline"><em>α</em> ∈ ℝ</span>. Now we are in position to state our main theorem.</p>
<h3 class="break-before">Theorem</h3>
<p>Let <span class="math inline">$a = (a_1, \dotsc, a_n) \in \mathbb{Z}^n$</span> and <span class="math inline"><em>b</em> ∈ ℤ</span>. Then the weight enumerator <span class="math inline"><em>W</em><sub><em>C</em></sub>(<em>z</em>)</span> of the linear-congruence code <span class="math display num">$$\label{eq: LCC}
C = { x \in \mathbb{Z}_q^n : a\cdot x \equiv b \pmod m }$$</span><!--<br />--> is given by <span class="num math display">$$W_C(z) =
\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\prod_{i=1}^n\left(1 + ze\left(\frac{ja_i}{m}\right) + \dotsb + ze\left(\frac{ja_i(q-1)}{m}\right)\right).$$</span><!--<br />--></p>
<p>With the same notation as above, the size of the code <span class="math inline"><em>C</em></span> is given by <!--<br />--><span class="math display">$$\lvert C\rvert =
\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\prod_{i=1}^n\left(1 + e\left(\frac{ja_i}{m}\right) + \dotsb + e\left(\frac{ja_i(q-1)}{m}\right)\right).$$</span><!--<br />--></p>
<h2 id="proof-of-theorem" class="unnumbered unnumbered">Proof of Theorem</h2>
<p>The only lemma we need to prove the main theorem is the following trivial one.</p>
<p><!--<br />--><span class="math display">$$\frac{1}{m}\sum_{j=1}^m e\left(\frac{jb}{m}\right)
= \begin{cases}
1 &amp; \mathrm{if } \ b \equiv 0 \pmod m \\
0 &amp; \mathrm{if } \ b \not\equiv 0 \pmod m .
\end{cases}$$</span><!--<br />--></p>
<p>The proof is straightforward: <!--<br />--><span class="math display">$$\begin{aligned}
&amp;\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\prod_{i=1}^n\left(1 + ze\left(\frac{ja_i}{m}\right) + \dotsb + ze\left(\frac{ja_i(q-1)}{m}\right)\right) \\
&amp;\qquad=
\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\prod_{i=1}^n \sum_{x_i \in \mathbb{Z}_q} z^{wt(x_i)}e\left(\frac{ja_ix_i}{m}\right) \\
&amp;\qquad=
\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\sum_{(x_1, \dotsc, x_n) \in \mathbb{Z}_q^n} \prod_{i=1}^n z^{wt(x_i)}e\left(\frac{ja_i x_i}{m}\right) \\
&amp;\qquad=
\frac{1}{m}\sum_{j=1}^m e\left(-\frac{jb}{m}\right)
\sum_{x \in \mathbb{Z}_q^n} z^{wt(x)}e\left(\frac{ja\cdot x}{m}\right) \\
&amp;\qquad=
\sum_{x \in \mathbb{Z}_q^n}
\left(\frac{1}{m}\sum_{j=1}^m
e\left(\frac{j(a\cdot x - b)}{m}\right) \right)
z^{wt(x)} \\
&amp;\qquad=
\sum_{x \in C}z^{wt(x)} \qquad (\text{By Lemma.}) \\
&amp;\qquad= W_C(z).
\end{aligned}$$</span><br /></p>
<h3>Remark</h3>
<p>The original proof by Bibak and Milenkovic <span class="citation" data-cites="BM18"></span> for the binary case uses a theorem of Lehmer <span class="citation" data-cites="Leh23"></span>, which states a linear congruence equation <!--<br />--><span class="math display">$$a\cdot x \equiv b \pmod m$$</span><!--<br />--> defined by <span class="math inline">$a = (a_1, \dotsc, a_n) \in \mathbb{Z}^n$</span> and <span class="math inline"><em>b</em> ∈ ℤ</span> has a solution <span class="math inline"><em>x</em> ∈ ℤ<sub><em>m</em></sub><sup><em>n</em></sup></span> if and only if <span class="math inline">$\gcd(a_1, \dotsc, a_n, m)$</span> divides <span class="math inline"><em>b</em></span>. Consequently, their result is stated depending on whether <span class="math inline">$\gcd(a_1, \dotsc, a_n, m)$</span> divides <span class="math inline"><em>b</em></span> or not. By contrast, our result does not refer to <span class="math inline">$\gcd(a_1, \dotsc, a_n, m)$</span> because our proof does not rely on the Lehmer theorem.</p>
<h2 id="acknowledgments" class="unnumbered unnumbered">Acknowledgments</h2>
<p>The author thanks Professor Manabu Hagiwara for drawing the author’s attention to the work of Bibak and Milenkovic and his invaluable help during the preparation of this article. This work is partially supported by KAKENHI(B) 18H01435, 16K12391 and 16K06336.</p>
<section id="references">
<h2 class="unnumbered unnumbered">References</h2>
<p>K. Bibak and O. Milenkovic, Weight enumerators of some classes of deletion correcting codes, <em>IEEE ISIT</em> (2018) 431–435, doi:<a href="https://doi.org/10.1109/ISIT.2018.8437121">10.1109/ISIT.2018.8437121</a>.</p>
<p>M. Hagiwara, On ordered syndromes for multi insertion/deletion error-correcting codes, <em>IEEE ISIT</em> (2016) 625–629, doi:<a href="https://doi.org/10.1109/ISIT.2016.7541374">10.1109/ISIT.2016.7541374</a>.</p>
<p>Perfect codes for single balanced adjacent deletions, <em>IEEE ISIT</em> (2017) 1938–1942, doi:<a href="https://doi.org/10.1109/ISIT.2017.8006867">10.1109/ISIT.2017.8006867</a>.</p>
<p>A. S. J. Helberg and H. C. Ferreira, On multiple insertion/deletion correcting codes, <em>IEEE Trans. Inf. Theory</em> <strong>48</strong> (2002) 305–308, doi:<a href="https://doi.org/10.1109/18.971760">10.1109/18.971760</a>. MR <a href="http://www.ams.org/mathscinet-getitem?mr=1872185">1872185</a> Zbl <a href="https://zbmath.org/?q=an:1059.94040">1059.94040</a></p>
<p>T. A. Le and H. D. Nguyen, New multiple insertion/deletion correcting codes for non-binary alphabets, <em>IEEE Trans. Inform. Theory</em> <strong>62</strong> (2016), 2682–2693, doi:<a href="https://doi.org/10.1109/TIT.2016.2541139">10.1109/TIT.2016.2541139</a>. MR <a href="http://www.ams.org/mathscinet-getitem?mr=3493869">3493869</a> Zbl <a href="https://zbmath.org/?q=an:1359.94714">1359.94714</a></p>
<p>D. N. Lehmer, Certain theorems in the theory of quadratic residues, <em>Amer. Math. Monthly</em> <strong>20</strong> (1913) 151–157, doi:<a href="https://doi.org/10.2307/2972413">10.2307/2972413</a>. MR <a href="http://www.ams.org/mathscinet-getitem?mr=1517830">1517830</a> Zbl <a href="https://zbmath.org/?q=an:44.0248.09">44.0248.09</a></p>
<p>V. I. Levenshtein, <a href="https://nymity.ch/sybilhunting/pdf/Levenshtein1966a.pdf">Binary codes capable of correcting deletions, insertions, and reversals</a>, <em>Soviet Physics Dokl.</em> <strong>10</strong> (1966) 707–710. MR <a href="http://www.ams.org/mathscinet-getitem?mr=189928">189928</a> Zbl <a href="https://zbmath.org/?q=an:0149.15905">0149.15905</a></p>
<p>R. R. Varshamov and G. M. Tenengol’ts, <a href="http://mi.mathnet.ru/eng/at11293">Code correcting single asymmetric errors</a>, <em>Avtomat. i Telemeh.</em> <strong>26</strong> (1965) 288–292. MR <a href="http://www.ams.org/mathscinet-getitem?mr=172738">172738</a></p>
</section>
</body>
</html>
/* style */
*{
margin: 0;
padding: 0;
}
a{
color: currentColor;
text-decoration: none;
}
:root{
font-size: 14px;
line-height: 18px;
--baseline: 18px;
font-family: 'spectral';
}
@page{
size: A4;
margin-left: 35mm;
margin-right: 35mm;
margin-bottom: 25mm;
margin-top: 25mm;
@top-left{ content: ""; width: 80mm; background-color: #999; }
@top-right{ content: ""; background-color: #999; }
@top-center{
content: "arXiv:1808.09365 [cs.IT]";
width: 160px;
font-weight: 400;
color: #888;
vertical-align: top;
margin-top: 8.5mm;
}
@bottom-left{
content: "T. Sakurai – A weight enumerator of linear-congruence codes";
color: #888;
/* width: 80mm;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden; */
}
@bottom-right{
content: counter(page) " / " counter(pages);
color: #888;
}
}
.pagedjs_margin-top-left, .pagedjs_margin-top-right { height: 6px; margin-top: 10mm; }
.pagedjs_margin-top { align-items: top; }
h1{
font-weight: 400;
font-size: 2.5rem;
line-height: calc(var(--baseline)*2);
text-transform: uppercase;
text-align: center;
width: 130mm;
margin: 0 auto;
padding-top: calc(var(--baseline)*3);
padding-bottom: calc(var(--baseline)*1);
}
#authors, h2{
font-weight: 500;
font-size: 1.2rem;
text-transform: uppercase;
text-align: center;
margin: 0 auto;
padding-top: calc(var(--baseline)*3);
padding-bottom: calc(var(--baseline)*1.5);
}
h3{
display: inline;
font-weight: 600;
font-size: 1rem;
margin-top: 300px;
margin-top: calc(var(--baseline)*2);
}
h3::after{ content: ". "; }
p{
text-align: justify;
margin-bottom: calc(var(--baseline)*0.5);
}
h3 + p{
display: inline;
margin-bottom: calc(var(--baseline)*0.5);
}
#authors{ padding-bottom: calc(var(--baseline)*2); }
.source{ padding-bottom: calc(var(--baseline)*1); }
.abstract, .keywords, .date, .math-class, .source{
width: 120mm;
margin: 0 auto;
}
.abstract::before{
content: "Abstract. ";
font-variant: small-caps;
}
.keywords::before{
content: "Keywords and phrases. ";
font-variant: small-caps;
}
.keywords, .date, .math-class, .source { text-align: left; }
.keywords, .date{ padding-top: calc(var(--baseline)*1); }
/* margin and counter for mathjax */
.math-class span, .source span { font-family: 'Courier New', Courier, monospace; }
.MJXc-display { margin: calc(var(--baseline)*0.5) 0!important; }
body{ counter-reset: num; }
.num { counter-increment: num; }
.num::before {
content: "(" counter(num) ")";
display: block;
position: absolute;
margin-top: calc(var(--baseline)*0.5);
}
/* tables style */
table {
break-inside: avoid;
border-collapse: collapse;
border-bottom: 3px double black;
margin-bottom: calc(var(--baseline)*3);
}
table caption { margin-bottom: calc(var(--baseline)*1); }
table caption::before {
content: "Table. ";
font-variant: small-caps;
}
thead{
border-top: 3px double black;
border-bottom: 3px double black;
}
th, td{
height: calc(var(--baseline)*2);
font-weight: 400;
}
tr{ border-bottom: 1px solid black;}
/* references counter */
#references { counter-reset: ref; }
#references p {
counter-increment: ref;
padding-left: 1rem;
}
#references p::before{
/* content: "hello"; */
content: "[" counter(ref) "] ";
position: absolute;
left: -1rem;
}
/* To define how the book look on the screen: */
@media screen {
body {
background-color:whitesmoke;
}
.pagedjs_page {
background-color: white;
box-shadow: 0 0 0 2px #888;
margin: 0 auto;
margin-top: 10mm;
}
}
/* hacks */
#acknowledgments { padding-top: 0; }
.break-before{ break-before: page; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment