Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6567471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:20:25+00:00 2026-05-25T14:20:25+00:00

I just started reading about literate programming and noweb – and I find it

  • 0

I just started reading about literate programming and noweb – and I find it quite interesting. As far as I understand it, the ‘notangle‘ step is the one that extracts (machine) source code (file), from the literal programming (source) file.

Here, I’m interested in one specific aspect: I would like to be able to extract multiple source files in one pass (in the notangle step) , including an execution script – and run the execution script in the same step!

An example in bash would look something like this:

#!/usr/bin/env bash
# file: test.c.gdb.sh 

# generate C source file
cat > test.c <<"EOF"
#include "stdio.h"

int main(void) {
  return 0;
}
EOF

# generate gdb script file
cat > test.gdb <<"EOF"
break main
run
EOF

# run the 'execution script'

gcc -g -Wall test.c -o test.exe
chmod +x test.exe
gdb -x test.gdb -se test.exe

The point in this, is that I can just call ‘./test.c.gdb.sh‘ from the shell, and I’ll have the source files generated, then compiled, and then have the debugger started automatically.

Is there a literate programming tool, that would allow something like this in the notangle step?

Thanks in advance for any answers,
Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:20:26+00:00Added an answer on May 25, 2026 at 2:20 pm

    extract multiple source files in one pass (in the notangle step), including an execution script – and run the execution script in the same step!

    Folks sometimes use make, ant, scons or maven for this kind of thing.

    A “single” magical command can’t cover very many bases very well. So it’s left to external tools to do this.

    Often, the final report or document requires complex, multi-step processing through various LaTeX tools. This, too, may require a simple build script or tool setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started programming in C# and was reading about dividing your application /
I just started reading about JPA and its implementation in Hibernate. To understand the
We have a bunch of data on S3 (images) but just started reading about
I have just started reading Modern C++ Design Generic programming and Design Patterns Applied
I've just started reading C and have a question about a macro. How can
I am just learning about escaping things and started reading about how it could
I have just started reading about threading in C, using pthreads. I know that
I've only just really started android developing and have been reading about services here
I have started reading about Maven and I don't understand how I am able
I have just started reading about neural networks and I have a basic question.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.