How to draw chessboards in ConTeXt?











up vote
4
down vote

favorite












I wonder which module you can use to draw chessboards in ConTeXt.
When I was using LaTeX, skak is fine but now I a bit stuck.



In LaTeX the code looks like:



documentclass{minimal}
usepackage{skak}

begin{document}
newgame
mainline{1.b4 b6} \
showboard
end{document}









share|improve this question




















  • 2




    I don't think that there is a chess module for context (and I certainly don't plain to write one).
    – Ulrike Fischer
    6 hours ago










  • Oh, okay. Thank you for the answer.
    – Blincer
    6 hours ago















up vote
4
down vote

favorite












I wonder which module you can use to draw chessboards in ConTeXt.
When I was using LaTeX, skak is fine but now I a bit stuck.



In LaTeX the code looks like:



documentclass{minimal}
usepackage{skak}

begin{document}
newgame
mainline{1.b4 b6} \
showboard
end{document}









share|improve this question




















  • 2




    I don't think that there is a chess module for context (and I certainly don't plain to write one).
    – Ulrike Fischer
    6 hours ago










  • Oh, okay. Thank you for the answer.
    – Blincer
    6 hours ago













up vote
4
down vote

favorite









up vote
4
down vote

favorite











I wonder which module you can use to draw chessboards in ConTeXt.
When I was using LaTeX, skak is fine but now I a bit stuck.



In LaTeX the code looks like:



documentclass{minimal}
usepackage{skak}

begin{document}
newgame
mainline{1.b4 b6} \
showboard
end{document}









share|improve this question















I wonder which module you can use to draw chessboards in ConTeXt.
When I was using LaTeX, skak is fine but now I a bit stuck.



In LaTeX the code looks like:



documentclass{minimal}
usepackage{skak}

begin{document}
newgame
mainline{1.b4 b6} \
showboard
end{document}






context chess skak






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago

























asked 6 hours ago









Blincer

1384




1384








  • 2




    I don't think that there is a chess module for context (and I certainly don't plain to write one).
    – Ulrike Fischer
    6 hours ago










  • Oh, okay. Thank you for the answer.
    – Blincer
    6 hours ago














  • 2




    I don't think that there is a chess module for context (and I certainly don't plain to write one).
    – Ulrike Fischer
    6 hours ago










  • Oh, okay. Thank you for the answer.
    – Blincer
    6 hours ago








2




2




I don't think that there is a chess module for context (and I certainly don't plain to write one).
– Ulrike Fischer
6 hours ago




I don't think that there is a chess module for context (and I certainly don't plain to write one).
– Ulrike Fischer
6 hours ago












Oh, okay. Thank you for the answer.
– Blincer
6 hours ago




Oh, okay. Thank you for the answer.
– Blincer
6 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote













AFAIK, there isn't any package dedicated to chess. Depending on what you want, you can actually piggyback on skak:



usemodule[filter]

defineexternalfilter
[chess]
[filter=pdflatex,
output=externalfilterbasefile.pdf,
readcommand=readPDFfile,
purge=no,
bufferbefore=chessbefore,
bufferafter=chessafter,
]

defreadPDFfile#1{externalfigure[#1]}

startbuffer[chessbefore]
documentclass{minimal}
usepackage{skak}
usepackage[active,tightpage]{preview}

begin{document}
begin{preview}
newgame
hidemoves{
stopbuffer

startbuffer[chessafter]
}
showboard
end{preview}
end{document}
stopbuffer

starttext
startchess
1. b4 b6
stopchess

stoptext


which gives



enter image description here






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462233%2fhow-to-draw-chessboards-in-context%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    AFAIK, there isn't any package dedicated to chess. Depending on what you want, you can actually piggyback on skak:



    usemodule[filter]

    defineexternalfilter
    [chess]
    [filter=pdflatex,
    output=externalfilterbasefile.pdf,
    readcommand=readPDFfile,
    purge=no,
    bufferbefore=chessbefore,
    bufferafter=chessafter,
    ]

    defreadPDFfile#1{externalfigure[#1]}

    startbuffer[chessbefore]
    documentclass{minimal}
    usepackage{skak}
    usepackage[active,tightpage]{preview}

    begin{document}
    begin{preview}
    newgame
    hidemoves{
    stopbuffer

    startbuffer[chessafter]
    }
    showboard
    end{preview}
    end{document}
    stopbuffer

    starttext
    startchess
    1. b4 b6
    stopchess

    stoptext


    which gives



    enter image description here






    share|improve this answer

























      up vote
      3
      down vote













      AFAIK, there isn't any package dedicated to chess. Depending on what you want, you can actually piggyback on skak:



      usemodule[filter]

      defineexternalfilter
      [chess]
      [filter=pdflatex,
      output=externalfilterbasefile.pdf,
      readcommand=readPDFfile,
      purge=no,
      bufferbefore=chessbefore,
      bufferafter=chessafter,
      ]

      defreadPDFfile#1{externalfigure[#1]}

      startbuffer[chessbefore]
      documentclass{minimal}
      usepackage{skak}
      usepackage[active,tightpage]{preview}

      begin{document}
      begin{preview}
      newgame
      hidemoves{
      stopbuffer

      startbuffer[chessafter]
      }
      showboard
      end{preview}
      end{document}
      stopbuffer

      starttext
      startchess
      1. b4 b6
      stopchess

      stoptext


      which gives



      enter image description here






      share|improve this answer























        up vote
        3
        down vote










        up vote
        3
        down vote









        AFAIK, there isn't any package dedicated to chess. Depending on what you want, you can actually piggyback on skak:



        usemodule[filter]

        defineexternalfilter
        [chess]
        [filter=pdflatex,
        output=externalfilterbasefile.pdf,
        readcommand=readPDFfile,
        purge=no,
        bufferbefore=chessbefore,
        bufferafter=chessafter,
        ]

        defreadPDFfile#1{externalfigure[#1]}

        startbuffer[chessbefore]
        documentclass{minimal}
        usepackage{skak}
        usepackage[active,tightpage]{preview}

        begin{document}
        begin{preview}
        newgame
        hidemoves{
        stopbuffer

        startbuffer[chessafter]
        }
        showboard
        end{preview}
        end{document}
        stopbuffer

        starttext
        startchess
        1. b4 b6
        stopchess

        stoptext


        which gives



        enter image description here






        share|improve this answer












        AFAIK, there isn't any package dedicated to chess. Depending on what you want, you can actually piggyback on skak:



        usemodule[filter]

        defineexternalfilter
        [chess]
        [filter=pdflatex,
        output=externalfilterbasefile.pdf,
        readcommand=readPDFfile,
        purge=no,
        bufferbefore=chessbefore,
        bufferafter=chessafter,
        ]

        defreadPDFfile#1{externalfigure[#1]}

        startbuffer[chessbefore]
        documentclass{minimal}
        usepackage{skak}
        usepackage[active,tightpage]{preview}

        begin{document}
        begin{preview}
        newgame
        hidemoves{
        stopbuffer

        startbuffer[chessafter]
        }
        showboard
        end{preview}
        end{document}
        stopbuffer

        starttext
        startchess
        1. b4 b6
        stopchess

        stoptext


        which gives



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        Aditya

        54.7k2109234




        54.7k2109234






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462233%2fhow-to-draw-chessboards-in-context%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)