小编Dis*_*los的帖子

在texstudio中执行cmd命令

我正在尝试在textstudio 中执行一些cmd 命令。特别是我想创建一个新文件夹,编译完成后我将在其中放置一些文件。在“选项 -> 构建 -> 预编译”中,我添加以下内容:

在此输入图像描述

但过了一会儿,收到错误 Error: Command crashed: "C:/Windows/System32/cmd.exe" "mkdir out"

我已经解决了: cmd.exe /C mkdir out > nul 2> nul 但命令输出继续显示。

cmd tex

6
推荐指数
0
解决办法
3985
查看次数

自动在 Tikz 节点之间居中放置标签

我是使用 Latex 包 Tikz 的新手,我正在尝试编写一个 Tableau。我的问题是在兄弟姐妹之间创建足够的空间,以便我可以在中间放置标签。这就是我所做的。我想尽可能避免手动间距,所以我正在寻找通用的解决方案。

 \begin{tikzpicture}[auto, node distance=1.3cm]


 \node (A) {$X^1$};
 \node (B) [below of=A] {$X^2$};
 \node (C) [below of=B] {$X^3$};
 \node (D) [below of=C] {$X^4$};
 \node (E) [below of=D] {$X^5$};  
 \node (F) [label={[label distance=-1cm] \color{green}{Complete}}, below left of=E,left=1cm] {$X^6$};
 \node (G) [below right of=E, right=1cm] {$X^7$};
 \node (H) [below left of=G,left=1cm] {$X^8$};
 \node (I) [label={[label distance=-1cm] \color{red}{Closed}}, below right of=G, right=1cm] {$X^9$};
 \node (L) [label={[label distance=-1cm] \color{red}{Closed}}, below of=H] {$X^{10}$};


 \path (A) edge  (B);
 \path (B) edge (C); …
Run Code Online (Sandbox Code Playgroud)

latex tikz

5
推荐指数
1
解决办法
7392
查看次数

JQuery/CSS 隐藏 cookie 横幅

我有一个简单的 cookie 横幅:

  <div id="cookie-consent" class="cookie-consent">
      <span>This site uses cookies to enhance user experience. see <a href="..." target="_blank" class="ml-1 text-decoration-none">Privacy policy</a> </span>
      <div  class="mt-2 d-flex align-items-center justify-content-center g-2">
        <button id="cookie-ok-button" class="cookie-allow-button mr-1">I'm aware</button>            
      </div>          
    </div>
Run Code Online (Sandbox Code Playgroud)

当用户单击“确定”按钮时,我使用 jquery 隐藏横幅:

$(document).ready(function()
{

if (window.localStorage.getItem('accept_cookies'))
{
    $('#cookie-consent').css('display','none');
}

$("#cookie-ok-button").click(function()
{              
    $('#cookie-consent').fadeOut();
    $('#cookie-consent').css('display','none');
    window.localStorage.setItem('accept_cookies', true);              
}); 
});
Run Code Online (Sandbox Code Playgroud)

它可以工作,但有时在 Chrome 上,横幅会出现然后迅速消失。我可以做任何修改来避免这种行为吗?

javascript css jquery

0
推荐指数
1
解决办法
775
查看次数

标签 统计

cmd ×1

css ×1

javascript ×1

jquery ×1

latex ×1

tex ×1

tikz ×1