AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1081768

Dead_Ling0's questions

Martin Hope
Dead_Ling0
Asked: 2019-09-07 07:05:49 +0800 CST

Latex tabularx 间距问题

  • 6

因此,我只是尝试编辑某人在 tabularx 中完成的表格,因为我喜欢这种风格,但我不知道我在做什么,因此我遇到了一个问题。在下面的代码中,在“设置”条目之后有一个很大的空间,我希望这一切都很好而且对称,这个空间使它非常不对称。有没有办法删除这个空间?

\documentclass{article}
\usepackage{array}
\usepackage{booktabs}
\usepackage{ragged2e}
\usepackage{tabularx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}


\begin{document}
    \noindent
    \edef\TabularRowHeight{\the\dimexpr-\arraystretch\baselineskip}

    \begin{tabularx}{\textwidth}{YY}
    \toprule
    Alice  &  Bob \\
    \midrule
    \emph{Setup}\\
    \cmidrule(lr){1-1}
    Alice \& Bob select a prime $p$ and a generator $g$ for the finite field $\mathbb{F}_p$
    &\\

    &\emph{Private Computation}\\
    \cmidrule(lr){2-2}
    &  Bob randomly selects $b \in \mathbb{F}_p$ and then computes the following:

     $B \equiv g^b \mod p$ once computed Bob sends Alice $B$

     \\[\TabularRowHeight] & \\

    & \emph{Key Computation}\\
    \cmidrule(lr){2-2}
    & Bob who now has $A$, calculates the following:$A^b \equiv (g^a)^b \equiv g^{ab} \mod p$

     \\


    \emph{Private Computation}\\ 
    \cmidrule(lr){1-1}
    Alice randomly selects $a \in \mathbb{F}_p$ and then computes the following:

    $A \equiv g^a \mod p$ once computed Alice sends Bob $A$ & \\ \pagebreak

    \emph{Key Computation}\\ 
    \cmidrule(lr){1-1}
    Alice who now has $B$, calculates the  following:$B^a \equiv (g^b)^a \equiv g^{ab} \mod p$ & \\


    \bottomrule


    \end{tabularx}
\end{document}

电流输出图

我想实现的输出

latex
  • 1 个回答
  • 544 Views
Martin Hope
Dead_Ling0
Asked: 2019-08-29 04:22:45 +0800 CST

参考书目的 LaTeX 问题

  • 5

我对 LaTeX 很陌生,所以我对它知之甚少,请记住这一点。所以我刚刚写了一个文件,我用下面的方法做了参考书目。

\begin{thebibliography}{}
    \bibitem{label}
\end{thebibliography}

然而,我被告知我需要使用哈佛风格的引用,随后建议我使用 bib 文件。所以我用我的书目信息创建了一个 bib 文件。但是,我似乎根本无法让它工作,我尝试了各种资源都无济于事。

如何在 LaTeX 中使用 bib 文件作为参考书目(哈佛风格)?

当前当我实现 bib 文件时输出。

Process started: bibtex.exe "Project"

This is BibTeX, Version 0.99d (TeX Live 2019/W32TeX)
The top-level auxiliary file: Project.aux
I found no \citation commands---while reading file Project.aux
I found no \bibdata command---while reading file Project.aux
I found no \bibstyle command---while reading file Project.aux
(There were 3 error messages)

Process exited with error(s)



Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "Project".tex

Process exited normally

这是我的 bib 文件中的一个示例:

@book{codebreakers3,
    author = {Kahn,D.},
    title = {The Codebreakers: the story of secret writing },
    year = {1996},
    publisher = {Scribner},
    isbn = {0684831309},
    page ={235},

}

@book{Cryptonetwork,
    title={Cryptography and Network Security: Principles and Practice, Global Edition},
    author={Stallings, W.},
    isbn={9781292158587},
    year={2016},
    pages = {314,451},
    publisher={Pearson Education},
}

@article{diffie,
    author = {  W. Diffie. and  M. Hellman.},
    title = {New directions in cryptography},
    journaltitle = {IEEE Transactions on Information Theory},
    year = {1976},
    volume = {22},
    issue = {6},
    month = {November},
    pages = {644-654},
    publisher = {IEEE Press Piscataway, NJ, USA },
    issn = {0018-9448},
}
latex bibliography
  • 1 个回答
  • 1462 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve